Skip to content

Tag: linux

which node gives quite strange result

Perhaps this seems silly, but when I run which node today it gives me something quite different as instead of something as However when I run sudo which node: I am wondering how this could happen? My Silly Questions how which command works to locate the path for the command; which node exactly selected based …

Why does running C code in Vim skip scanf()?

I’m using neovim in arch linux with the gcc C compiler, this is what I use in my .vimrc to compile and run map <F5> :w <CR> :!gcc % -o %< && ./%< <CR> The issue is that my code will run fine but any scanf() functions won’t prompt an input and will be ignored as the …

C socket programming errors

It’s been an hour since I started looking for THE error. I just started C sockets. The program exits with code -1 after printing “Error 1 connection error”. The server in online, it’s a netcat server. Where did I messed up ? Answer Due to operator precedence, the expression is actually…