title: Standard C usage of getenv and safe practices
body: <p>I am trying to write C code which makes use of some ENV variables in a UNIX environment. The question is: Could reading variables (for example getenv()) cause buffer overflow? Moreover, how can I find the limit of the env variable size for my platform ? For example which header file?</p>
  
  <p>Finally, what are the safest code practices in reading environment supplied variables?</p>