acl/samples/process/main.c
zsxxsz cc05b877a2 first commit acl to github
first commit acl to github
2013-08-18 17:42:25 +08:00

17 lines
337 B
C

#include "lib_acl.h"
#include <stdio.h>
int main(int argc acl_unused, char *argv[] acl_unused)
{
const char *ptr = acl_process_path();
const char *ptr1 = acl_getcwd();
printf("current process file's path: %s, getcwd: %s\n",
ptr ? ptr : "unknown", ptr1 ? ptr1 : "unknown");
#ifdef ACL_MS_WINDOWS
getchar();
#endif
return (0);
}