代码搜索:stdlib
找到约 10,000 项符合「stdlib」的源代码
代码结果 10,000
www.eeworm.com/read/366524/9810817
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,
www.eeworm.com/read/170114/9818845
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/170114/9818869
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/366065/9835161
c fixstrtod.c
/*
* fixstrtod.c --
*
* Source code for the "fixstrtod" procedure. This procedure is
* used in place of strtod under Solaris 2.4, in order to fix
* a bug where the "end" pointer gets set incorr
www.eeworm.com/read/366028/9836282
txt n!零的个数.txt
#include
#include
int main()
{
int a,count = 0;
int n,b,cc,ii = 0;
int m;
scanf("%d",&cc);
for(;ii
www.eeworm.com/read/169721/9844996
c exit.c
# include
# include
void main()
{
int month;
int day;
printf("please input the month number: ");
scanf("%d", &month);
switch (month)
{
case 1:
case 3:
ca
www.eeworm.com/read/365783/9847432
c efence.c
#include
#include
int main()
{
char *ptr = (char *) malloc(1024);
ptr[0] = 0;
/* Now write beyond the block */
ptr[1024] = 0;
exit(0);
}
www.eeworm.com/read/365783/9847774
c system1.c
#include
#include
int main()
{
printf("Running ps with system\n");
system("ps -ax");
printf("Done.\n");
exit(0);
}
www.eeworm.com/read/365783/9847777
c system2.c
#include
#include
int main()
{
printf("Running ps with system\n");
system("ps -ax &");
printf("Done.\n");
exit(0);
}
www.eeworm.com/read/365783/9847885
c showenv.c
#include
#include
extern char **environ;
int main()
{
char **env = environ;
while(*env) {
printf("%s\n",*env);
env++;
}
exit(0);
}