Skip to content

Tag: linux

Multiple instances of main method in C

I’ve got an issue with an assignment, but I’m not asking for help to do the assignment, just single problem. My code is like this: Here’s the problem: When I do the make command from the directory, I get the error What does this error mean? I only defined the main method one time in my own f…

Replace the string/line after separator on specific param

I have the following Perl one liner code , My target is to replace the line after “=” separator, and that defined in PARAM variable But actually its replace all the line include the PARAM itself The expected results should be Please advice what need to fix in my Perl one liner code? other example that still n…

C assembler function casting

I came across this piece of code (for the whole program see this page, see the program named “srop.c”). My question is regarding how func is used in the main method. I have only kept the code which I thought could be related. It is the line *ret = (int)func +4; that confuses me. There are three qu…