You are right, I should have been using strchr(), but I'm still not quite sure how to pass the integer value to strchr. I know a char is an 8-bit int, but I'm confused as to whether or not I need to create a new unsigned char( capable of storing 0-255) copying values bits to it.
I'm so confused. . .
This is what I'm thinking, but it seg faults:
int value, use = 0;
unsigned char search_for;
/* Code here that prompts the user for an integer from 0-255 */
printf( "Searching for character %c[%d]. . .\n\n\n", value, value );
search_for = value|use;
char *hit = strstr( file, search_for );
printf( "hit: %X\n", hit );
printf( "search_for: %c\n", search_for ); // Prints the ASCII character associated with the user-entered integer.