Skip to content
bbminfo – Learn from Scratch
Subjects Code examples Library reference
Computer Programming Python Java C++ C Go PHP Kotlin Ruby R Scala Groovy

Tutorial menu

Subjects

Computer Programming MathsPlanned ChemistryPlanned

Lesson contents

Programming resources

All languages Code examples Library reference

Programming languages

Python Java C++ C Go PHP Kotlin Ruby R Scala Groovy
Tutorials/Computer Programming/C/Library/Strings and input

C strings and input

Clean up names, compare codes, and read quantities from a form.

strstrstrncmpstrtol

Browse by topic

  • Inspect text and Unicode3
  • Find and compare7
  • Clean and replace2
  • Split, join, and extract1
  • Format and convert2
  • Other text and parsing guides2

Inspect text and Unicode

  • strlenCheck for an untouched delivery note
  • strlenCheck the length of a parcel code
  • strspnCheck an attendance comment
Advertisements

Find and compare

  • strchrLocate a divider in a shelf code
  • strcmpOrder two shelf areas
  • strcmpVerify a locker code
  • strlen and strcmpFind filenames with a receipt extension
  • strncmpRecognize an invoice prefix
  • strrchrLocate a divider in a shelf code
  • strstrFind a word on a shelf label

Clean and replace

  • tolowerNormalize a campus code
  • toupperNormalize a campus code

Split, join, and extract

  • strtokRead a simple route manifest

Format and convert

  • UTF-8 strlenMeasure a café line on a receipt
  • snprintfPrint a queue ticket

Other text and parsing guides

  • strtolReject a partial integer in a quantity field
  • strcspnRemove either kind of line ending

All C library sections

C tutorials

Environment setup› Library reference› Data structures› Code examples›
Advertisements
bbminfo – Learn from Scratch
© 2026 bbminfoArtwork creditsPrivacy policy