strtol1 strtol long strtol(const char *nptr, char **endptr, int base) #include #include #include #include /* * Convert a string to a long integer. * * Ignores `locale' stuff. Assumes that the upper and lower case * alphabets and digits are each contiguous. */ long strtol(const char *nptr, char **endptr, int base) { const char *s; long acc, cutoff; int c; int neg, any, cutlim; /* * Skip white space and pick up .. 2016. 7. 9. 이전 1 다음