Ejemplo n.º 1
0
int main(void) {
    
    SLLStud* hashDict[HASH_MOD] =  { NULL };
    readManyStudents(hashDict);
    printStudents(hashDict);
    freePtrs(hashDict);
    return EXIT_SUCCESS;

}
Ejemplo n.º 2
0
void 
int main(){
	/*int x = 0;
	f(&x);
	printf("%d",x);*/
	char*str=malloc(sizeof(char)),*p=malloc(sizeof(char)),*q=malloc(sizeof(char));
	*str='s';*p='p';*q='q';
	printf("%d\n",*str);
	printf("%d\n",*p);
	printf("%d\n",*q);
	freePtrs(str,p,q,NULL);
	printf("%d\n",*str);
	printf("%d\n",*p);
	printf("%d\n",*q);
	myfree(str);
	myfree(p);
	myfree(q);
	if(str!=NULL)printf("%d\n",*str);
	printf("%d\n",*p);
	printf("%d\n",*q);
	
}