c value set to zero __memmove_avx_unaligned_erms
snippet in c

c value set to zero __memmove_avx_unaligned_erms

user2034

//The issue is that you probably have an uninitialized variable.
//Instead of:
char *fnam;
int nn = sprintf(fnam,"%s/%s",cwd,filnam);
//Try:
char fnam[500];
int nn = sprintf(fnam,"%s/%s",cwd,filnam);