All pastes #196852 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-10-10 22:50 UTC
rendered paste body
int 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;
}