분류 전체보기683 atol long atol(const char *str)*endptr, int base) #include long atol(const char *str) { return(strtol(str, (char **)NULL, 10)); } 2016. 7. 9. strtoll long long strtoll(const char *nptr, char **endptr, int base) #include #include #include #include #include /* * Convert a string to a long long. * * Ignores `locale' stuff. Assumes that the upper and lower case * alphabets and digits are each contiguous. */ long long strtoll(const char *nptr, char **endptr, int base) { const char *s; long long acc, cutoff; int c; int neg, any, cutlim; /* * Skip w.. 2016. 7. 9. atoll long long atoll(const char *str) #include long long atoll(const char *str) { return(strtoll(str, (char **)NULL, 10)); } 2016. 7. 9. calloc void * calloc(size_t num, size_t size) #include #include #include #include void * calloc(size_t num, size_t size) { void *p; if (num && SIZE_MAX / num < size) { errno = ENOMEM; return NULL; } size *= num; p = malloc(size); if (p) memset(p, 0, size); return(p); } 2016. 7. 9. 이전 1 ··· 147 148 149 150 151 152 153 ··· 171 다음