Unnamed
public text v1 · immutableint check_prcsys_tag(char * path, const char * tag) {
FILE * file;
char buffer[1024];
int found = 0;
file = open_file(path);
while(fgets(buffer,sizeof(buffer),file) != NULL) {
if(strncmp(tag,buffer,strlen(tag)) == 0) {
found = 1;
break;
}
}
close_file(file, path);
return 0;
}