I am scanning strings as input , i am using getline to do so e.g
char *lajna=NULL;
size_t dlzka=0;
getline(&lajna,&dlzka,stdin);
and i want to read first char using fgetc , i tried to do
test=fgetc(lajna);
but it throws error
cannot convert ‘char**’ to ‘FILE* {aka _IO_FILE*}’ for argument ‘1’ to ‘int fgetc(FILE*)’ ciarka=fgetc(&lajna);
i checked it up and found nothing how to read chars from buffer like this, what is the right way?