Questions tagged [problemset4]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
19 views

The third last line of code is the one causing a segmentation fault. When removed, nothing happens and all I get is a $ on a new line in the terminal

#include <stdio.h> #include <stdlib.h> #include <string.h> #include <cs50.h> int main(int argc, char *argv[]) { #define BUFFER_SIZE 512 FILE *img = NULL; if(argc =...
0
votes
1answer
18 views

implicit declaration of function 'strcpm' is invalid even though string.h is included

My Code #include <stdio.h> #include "helpers.h" #include <math.h> #include <string.h> // Prototypes char* get_pixel_position(int j, int i, int width, int height); void ...