ACQ2XX_API
local.h
Go to the documentation of this file.
00001 #define FN __PRETTY_FUNCTION__
00002 #include "../include/local.h"
00003 #include <unistd.h>
00004 
00005         
00006 static inline void die(int errcode, const char *s)
00007 {
00008         perror(s);
00009         _exit(errcode);
00010 }
00011 
00012 static inline long getenvInt(const char* key, long default_value)
00013 {
00014         const char* pv = getenv(key);
00015 
00016         if (pv){
00017                 return strtol(pv, 0, 0);
00018         }else{
00019                 return default_value;
00020         }
00021 }
00022 #define STATUS_WORKTODO -42