I am working on converting a Windows DLL to a Linux SO. I have converted all of the types BYTE to unsigned char and LPBYTE to unsigned char*. The compiler is giving me errors in one function as follows: Error: Invalid Conversion from ‘char*’ to ‘unsigned char’ Error: Invalid Conversion from ‘unsigned char’ to ‘unsigned char*’ Specifically at these two
Tag: type-conversion
Parse ps’ “etime” output and convert it into seconds
These are possible output formats for ps h -eo etime How to parse them into seconds? Please assume at least 3 digits for the days part as I don’t know how long it can be. The output will be egreped to one only line so no need for a loop. Answer With awk: Run with : Output: And finally, if