9.2.0.
You know, I apologize for most likely wasting your time, but the code I posted is no longer exhibiting the issue after I changed parts of it to test, then reverted to what I wrote here. I...
Type: Posts; User: Sammun-Mak
9.2.0.
You know, I apologize for most likely wasting your time, but the code I posted is no longer exhibiting the issue after I changed parts of it to test, then reverted to what I wrote here. I...
Assignment of 0 to the first character in "buffer" to have a newline, then. シ Sorry for the confusion.
Test input. I can't read assembly, unfortunately -- I'm just a hobbyist, and haven't yet...
#include <stdio.h>
#include <string.h>
#define BUFFLENGTH 100
int main() {
char buffer[BUFFLENGTH+1];
memset(buffer,0,BUFFLENGTH+1);
fgets(buffer,BUFFLENGTH,stdin);
...
My god, of course. Thank you so much.
In addition to Debian, Arch, Gentoo, and Funtoo support GCC 9.
If you're new to Linux though, go with Debian, unless you want to learn a lot pretty quickly.
This is my first post on this forum so I apologize if I do something wrong.
As explained in my title, my code produces the desired result, but valgrind complains of using an uninitialized variable...