my token sign { <[+-]> } my token decimal { \d+ } my token exponent { 'e' <sign>? <decimal> } my regex float { <sign>? <decimal>? '.' <decimal> <exponent>?...
Writing C code is tremendously difficult; a company has to pay a lot of money to get it done. But to write good C code, you also need to know how to use software tools that en...
are you aware that all intel cpu run Minix internally?
So, if function not Need to return error you can return value typedef enum{EVEN,ODD} oddeven_e; oddeven_e is_odd_or_even(int num){ return num & 1 ? ODD : EVEN; }
Python style int div(int a, int b){ if( b == 0 ){ errno=EINVAL; return -1; } return a/b; } int main(int c, char** a){ if(c<3)rerurn 1 ; errno=0; printf("...
char* strchr_fast(char* str, size_t len, char need){ str[len]=need; while(*str != need) ++str; str[len]=0; return *str ? str : 0; }
You write a O.S. with python? You write web page with assembly? NO, at least you're not crazy, you use a right tools
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strcpy-s-wcscpy-s-mbscpy-s?view=msvc-160
How you can get sizeof register?
How many time you call read for get one line?
what does your software do?
You use chromium on your pc?
For parsing a numbers?
you think linux is difficult and despite this it uses systemcalls as if they api Are you able to use Windows sistemcall?
Ok int lol[]={1,2,3}; 1[lol]^=2[lol]; 2[lol]^=1[lol]; 1[lol]^=2[lol]; printf("%d",lol[2]); what does it show?
why four __be32?
You develope avionics firmware?
You want view information on process in Linux? All Is a file? Process is a file? Yes ls /proc/<pid>/
Ok, you Need to read N line with 8bytes len, how many time you call read?
Are you sure that user select software between execution time? 3s vs 2.3s?