Search:

Type: Posts; User: Sammun-Mak

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    9,104

    9.2.0. You know, I apologize for most likely...

    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...
  2. Replies
    6
    Views
    9,104

    Assignment of 0 to the first character in...

    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...
  3. Replies
    6
    Views
    9,104

    Prevent optimization of zero-ed memory.

    #include <stdio.h>
    #include <string.h>
    #define BUFFLENGTH 100
    int main() {
    char buffer[BUFFLENGTH+1];
    memset(buffer,0,BUFFLENGTH+1);
    fgets(buffer,BUFFLENGTH,stdin);
    ...
  4. My god, of course. Thank you so much.

    My god, of course. Thank you so much.
  5. In addition to Debian, Arch, Gentoo, and Funtoo...

    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.
  6. Valgrind complaining of unitialized variable with strstr

    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...
Results 1 to 6 of 6