I did read it laserlight, but it wouldn't work in my program even though I followed the example in the man getline of linux. Which is when i switched to fgets because the tutor and another student...
Type: Posts; User: arti
I did read it laserlight, but it wouldn't work in my program even though I followed the example in the man getline of linux. Which is when i switched to fgets because the tutor and another student...
It isn't my code. I found it in another tutorial website. I am showing it because the tutor said that getline would be a lot better to use. My code involves using fscanf and fprintf
Hopefully someone can explain to me how the getline function works. Thank you
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
//welcome to main!
//we need...