Dear friends
Im new in IT and i want to ask you about boundary values check in a program.
I have the following exercise that I want to check and i don't know how...
#include <stdio.h>
#include <string.h>
struct st {
int i;
char n[4];
char g;
};
struct st C;
int F(char *fe){
if (fe == NULL)
return(-1);
C.g = 'OLE'; //only this value is allowed
strncpy( C.n, fe, strlen(fe));
return(s.g);
}
Please help me only with the way out, i have to try it myself.
Thanks allot in forward