How can I interrupt a running C code, to create a hash of a file in a directory?
So at some point in the C code, I put in some code which will create an md5 hash of a file, such as thisfile.txt?
How can I interrupt a running C code, to create a hash of a file in a directory?
So at some point in the C code, I put in some code which will create an md5 hash of a file, such as thisfile.txt?
The two parts of your question seem un-related.
If you want to interrupt a running C code, you should use signals. Refer http://beej.us/guide/bgipc/output/html/multipage/signals.html
If you want to create md5, use MD5 APIs which are readily available.
I don't understand the need to generate an interrupt to calculate the hash.
Thanks