Share the solution to your problem. This will help others understand this faster.
Improve your knowledge of operators and comments.
You write too many unnecessary { and } in statements. For example, your code:
for( i = 0; i < N; i++ ) { printf("Hello"); }
More simple / understandable code:
for( i = 0; i < N; i++ ) printf("Hello");
.................................................. .........................
Your code (original) may look like this ( easier to read and understand .):
static int wqb_handler(request_rec* req) { const char* p_file = req -> filename; FILE* req_file; if((req_file = fopen(p_file,"r"))==NULL) return HTTP_NOT_FOUND; else fclose(req_file); const char* content_type_a = "text/html"; ap_set_content_type(req,content_type_a); if(req->header_only) return 0; return OK; }
source share