C Program to lock file using semaphores.

Write a C Program to lock file using semaphores.Using semaphores, We can control access to files, shared memory and other things. The basic functionality of a semaphore is that you can either set it, check it, or wait until it clears then set it (“test-n-set”). In C semaphores functions defined in the sys/sem library. Read …

C Program to demonstrate the strtok function.

C Program to demonstrate the strtok function.strtok function breaks pointed by the string1 into sequence of tokens, which are sequences of contiguous characters separated by any of the characters that are part of delimiters.In this program we split the test_string, i,e “string to split up ” tostringtosplitupRead more about C Programming Language . /************************************************************ You …