<<Navigation: 执行失败 ['AllContext' object has no attribute 'values'] (see also the log)>>

B.5 Utility Functions: <stdlib.h>

The header <stdlib.h> declares functions for number conversion, storage allocation, and similar tasks.

double atof(const char *s)

int atoi(const char *s)

long atol(const char *s)

double strtod(const char *s, char **endp)

long strtol(const char *s, char **endp, int base)

unsigned long strtoul(const char *s, char **endp, int base)

int rand(void)

void srand(unsigned int seed)

void *calloc(size_t nobj, size_t size)

void *malloc(size_t size)

void *realloc(void *p, size_t size)

void free(void *p)

void abort(void)

void exit(int status)

int atexit(void (*fcn)(void))

int system(const char *s)

char *getenv(const char *name)

void *bsearch(const void *key, const void *base,

void qsort(void *base, size_t n, size_t size,

int abs(int n)

long labs(long n)

div_t div(int num, int denom)

ldiv_t ldiv(long num, long denom)

TCPL/B.05_Utility_Functions:_<stdlib.h> (2008-02-23 15:36:31由localhost编辑)

ch3n2k.com | Copyright (c) 2004-2020 czk.