I have a C program that is sent a checksum. I need to need to modify the program so it calculates the checksum and compare. It's just adding the ascii values on a file name. Here's what I tried but I'm new at C and feeling stupid tonight.
long calc_checksum (char *fileName)
for (i=0; i < strlen(fileName); i++)
checksum += atoi(&fileName[ i ]);