•
•
•
•
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 374,570 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,525 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
This snippet uses strtod to be a little more stringent. (View Snippet)
XOR Encryption in c
In Part 1, the code reversed the string in place. This version uses a source and a destination string. (View Snippet)
Hex Dump in c
Yet another angle at this same topic.
See also Parsing a String into Tokens Using strcspn, Part 1 and Parsing a String into Tokens Using strcspn, Part 2. (View Snippet)
This snippet is a variation of the code in Parsing a String into Tokens Using strcspn, Part 1. It uses canned strings rather than reading from a file.
See also Parsing a String into Tokens Using strcspn, Part 3. (View Snippet)
This is a strtol version of Read an Integer from the User, Part 2. (View Snippet)
How might I write an implementation in C of a case-insensitive version of the standard library function strcmp? Here's how I might.
This this is often available as a nonstandard function that may be called stricmp, _stricmp, strcmpi, or strcasecmp.
See also Strings: Comparing. (View Snippet)
Morse Code in c
Break down an amount into units of dollars and cents. (View Snippet)