Portál AbcLinuxu, 11. května 2025 09:59
#include <stdio.h> #include <stdlib.h> #define BUFSIZE 100 /*@null@*/ int **loadpgm(char *filename, int *width, int *height); int main(/*@unused@*/ int argc, /*@unused@*/ char** argv) { int width = 0; int height = 0; (void) loadpgm("/home/vasik/tmp/imdemo.pgm0", &width, &height); return (EXIT_SUCCESS); } /*@null@*/ int **loadpgm(char *filename, int *width, int *height) { FILE *fr = fopen(filename, "r"); if (fr == NULL) { fprintf(stderr, "Can not open %s", filename); return NULL; } char buffer; return NULL; }na 25. radku(char buffer; 5ty radek odspodu) dostanu chybu: Parse Error. Kdyby nekdo vedel, jak se toho zbavit, nebo kde delam chybu, budu vdecny za vase reakce.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.