@matrix don't you have to put a & before input_stro or something like that?

@matrix

Am I retarded?

Да ибо скриншот кода.

Why doesn’t this work?

А что ты хочешь? У тебя там обрезается по пробелу? так он управляющий знак, так что если хочешь считать строку то надо писать такую хуйню:

#include <stdio.h> int main(void) { char input_str[101]; printf("Insert your string, retard:\n"); scanf("%100[^\n]s", input_str); printf("you string:\n%s\n", input_str); return 0; }

@matrix scanf is trash, write your own readline() it's like 100 loc
Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.