quinta-feira, outubro 06, 2005

NC Bibliotecas em C

http://es.tldp.org/Otros/00-CAOS/casi-borrable/bibliotecas-HOWTO.html


NC Pointer to char in C (revision)



int main() {
char *s;

s=(char *) malloc (100);
s="hello";
free(s);
return 0;
}

int main() {
char *s;
s=(char *) malloc (100);
strcpy(s,"hello");
free(s);
return 0;
}



This page is powered by Blogger. Isn't yours?