π“Ÿ host1.bitchan.one

𓀐 @Q+Cay2RH

⏱ 5d seenβ›“ 0πŸ‘ 0β§– 1

filter [-]

languages:onother

i dont know how to code even with ai. i wrote this program yesterday from a tutorial, and i couldn't even print an integer without using printf (not allowed according to the tutorial, to build up skills), just the write function. i feel like a noskills vibecoder ;_; #include <unistd.h> #include <stdio.h> int ft_strlen(char *str){ int i = 0; while (str[i] != '\0'){ i++; } return i; } int main(void){ int i = ft_strlen("the size of the string is: \n"); write(1, &i , sizeof(i)); // <<--- right here return 0; } [\code]⏱ 4d↩