As well as doing calculations on numbers, you'll want
your program to be able to handle strings of text - things
like names and addresses and product codes ... and HTML
tags and SQL queries too, perhaps. C defines strings as
char[] types, and there's a whole raft of standard functions
that are available to work on strings.
This topic is presented on public courses
Programming in C,
C and C++ Programming
Examples from our training material
| cli.c | Command Line Handling |
| csame.c | Comparisons of strings in C |
| cstr.c | String manipulation in C |
| dynamic.c | memort allocation and release with calloc and free |
| dynbad.c | How NOT to do it - overrunning an array |
| fff | Some sample data |
| makefile | makefile for module C206 |
| rabbit.c | Structures and file i/o - C |
| readwrite.c | File handling basics in C |
| sti1.c | Characters and strings in C |
Opentalk forum discussions related to this topic
Sprintf memory leakC string funtion
Background information
Some modules are
available for download as a sample of our material or under an
Open Training Notes License for free download from
http://www.training-notes.co.uk.
Topics covered in this module
Defining string variables
String manipulation functions
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if
you live in a different
country or continent to us.
We have a technical library of over 600 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.