代码搜索:stdlib

找到约 10,000 项符合「stdlib」的源代码

代码结果 10,000
www.eeworm.com/read/145180/12746377

c test7.c

#include #include char msg[] = "strdup overrun"; void test(void) { char *p; p = strdup("Hello"); p[10] = 'x'; }
www.eeworm.com/read/145180/12746380

c test8.c

#include #include char msg[] = "calloc overrun (should crash)"; void test(void) { char *p; p = calloc(5, 1); p[10] = 'x'; }
www.eeworm.com/read/145180/12746381

c test11.c

#include #include static void c (void) { char *p; p = malloc(10); p[11] = 0; } char msg[] = "Atexit test, should crash"; void test() { atexit(c); }
www.eeworm.com/read/145180/12746388

c test1.c

/* Tester for yamd. */ #include char msg[] = "malloc overrun (should crash)"; void test(void) { char *p; p = malloc(10); p[10] = 'h'; }
www.eeworm.com/read/332581/12746990

c init.c

#include extern SIZE; double *init(int n) {double *flag; flag=(double *)calloc(SIZE,n);/*申请10个长度为64字节的空间*/ return(flag); }
www.eeworm.com/read/144827/12770645

cpp tst-sleep.cpp

#include #include #include #include int main() { int i; i=sleep(10); return 0; }
www.eeworm.com/read/332234/12772197

c 7-44.c

/*将字符串a,b,c 分别采用10,2,16进制转换成数字*/ #include main() { char a[]="1000000000"; char b[]="1000000000"; char c[]="ffff"; printf("a=%d\n",strtol(a,NULL,10)); printf("b=%d\n",strtol(b,NULL,2)
www.eeworm.com/read/332234/12772225

c 7-45.c

#include main() { int a=217; char b; printf("before toascii () : a value =%d(%c)\n",a,a); b=toascii(a); printf("after toascii() : a value =%d(%c)\n",b,b); }
www.eeworm.com/read/144708/12775472

c srch_env.c

#include #include void main (int argc, char *argv[]) { char path[128]; _searchenv(argv[1], "LIB", path); if (path[0]) printf("Pathname: %s\n", path)
www.eeworm.com/read/144708/12775933

c min_max.c

#include #include void main (void) { printf("Maximum of %f and %f is %f\n", 10.0, 25.0, max(10.0, 25.0)); printf("Minimum of %f and %f is %f\n", 10.0,