C examples for Function:Utility Function

Click the following links for the tutorial for Function and Utility Function.

- Encrypt and decrypt text
- Make System Calls with system() function
- Create your own card games to shuffle and deal cards for Poker games
- Converting a Positive Integer to Another Base
- Calculating Factorials Recursively
- Counting the Characters in a String with your own function
- Testing strings for equality with your own function
- Concatenating Character Strings with function
- converts a string of digits str into an equivalent integer.
- counts the number of 1-bits in its integer argument:
- removes all occurrences of the character ch from the string str:
- converts an upper case letter into a lower case letter, and leaves lower case letter unchanged:
- reads a line of text into a char array q and returns its length:
- raises base to nth power where n is greater than or equal to zero:
- Use the system() function to execute system command
- Use assert() macro to check input
- Using character test macros to create an integer input function.
- Create a function to get the value of the integer x rotated to the right by n positions.
- Create a function to invert bit from an integer
- Create a function to set integer by bit
- Create function power and a main program to exercise it
- Create a temperature conversion program with a function for conversion.
- Write and test a Fibonacci() function that uses a loop instead of recursion to calculate Fibonacci numbers.
- Convert a decimal number to a number in a any base
- Create a recursive power function.
- Create a power() function that correctly handles negative powers.
- Use assert() to check value
- Using qsort to sort groups of numbers
- Call atexit() function to register function