[β]
β
bitchan
[?] help
π
host1.bitchan.one
π
@Q+Cay2RH
β±
5d seen
β
0
π
0
β§
1
π hide
send βΏitcoin
[!] follow
[@] review
posts 1
/ 1
[β₯] sort oldest
β±
filter [-]
languages:
on
other
/technology
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
β©