/[path-sandbox]/trunk/libsbutil/get_sandbox_lib.c
Gentoo

Diff of /trunk/libsbutil/get_sandbox_lib.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 216 Revision 260
164 return (st.st_size); 164 return (st.st_size);
165} 165}
166 166
167#endif /* OUTSIDE_LIBSANDBOX */ 167#endif /* OUTSIDE_LIBSANDBOX */
168 168
169bool is_env_on (const char *env)
170{
171 if ((NULL != env) && (NULL != getenv(env)) &&
172 ((0 == strncasecmp(getenv(env), "1", 1)) ||
173 (0 == strncasecmp(getenv(env), "yes", 3))))
174 return true;
175
176 return false;
177}
178
169char * gstrndup (const char *str, size_t size) 179char * gstrndup (const char *str, size_t size)
170{ 180{
171 char *new_str = NULL; 181 char *new_str = NULL;
172 size_t len; 182 size_t len;
173 183

Legend:
Removed from v.216  
changed lines
  Added in v.260

  ViewVC Help
Powered by ViewVC 1.1.20