Is there a function to remove spaces from a string? I need a way to have a user input a string with spaces, numbers, and letters and remove all spaces before storing it. Using scanf, cin, gets or fgets, apparently I only retain whatever is before the first space.
veronicak5678 0 Light Poster
Duoas 1,025 Postaholic Featured Poster
veronicak5678 0 Light Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
powerof2 0 Newbie Poster
iamthwee
kenji 1 Junior Poster
nucleon 114 Posting Pro in Training
kenji 1 Junior Poster
cheldric 0 Newbie Poster
JameB 66 Junior Poster
Duoas 1,025 Postaholic Featured Poster
damnpoet 0 Light Poster
pseudorandom21 166 Practically a Posting Shark
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
Duoas 1,025 Postaholic Featured Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
bridgett.grace 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.