String Library Functions - A few questions

free web hosting
Free Web Hosting > Computers & Tech > Programming > Programming General > C, C++ & Visual C++

String Library Functions - A few questions

NelsonTR4N
Hi everyone, I have a NEW question

I am learning about strings and I don't understand what some string functions are...

strcpy()
strcat()
strcmp() and
strlen()

"C++ Beginner's Guide by Herbert Schildt" explained what the functions do but I am still confused. I read the functions many times and looked up examples...

If you can explain what each of them are and do, I would be grateful.

Thanks in advance!

Reply

xboxrulz
This is discussed at my college's website. Hopefully it would be useful:
http://cs.senecac.on.ca/~btp100/pages/content/sfunc.html

xboxrulz

Reply

Darasen
That is a good resource xboxrulz, thanks for sharing it with us.

To the OP, perhaps if you let us know where it is that you are losing comprehension we can assist you better.

Reply

yordan
I suppose that you already know that you use
strcpy() for copying a string from somewhere to somewhere else in your program
strcat() for displaying a string
strcmp() for comparing two strings.
strlen() for knowing the size of a string.

Reply

magiccode9
In addition to these functions.
There are other set of functions do the same thing but add one more parameter.

They are strncpy(), strncat() and strncmp()

It will allowed control how many chars to copy.

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Recent Queries:-
  1. what is string function in c language - 101.56 hr back. (1)
  2. explain any 5 string function with examples - 110.44 hr back. (1)
  3. "c string functions" - 162.08 hr back. (1)
  4. c language advance string functions - 163.98 hr back. (1)
  5. php "string to function" - 313.61 hr back. (2)
  6. windows string functions - 435.57 hr back. (1)
  7. visual c string functions - 441.25 hr back. (1)
  8. string functions in c programing - 443.65 hr back. (1)
  9. string library functions - 451.05 hr back. (1)
  10. php string library - 15.47 hr back. (2)
  11. c string functions windows - 476.94 hr back. (1)
  12. c string functions and new - 479.86 hr back. (1)
  13. string library php - 503.61 hr back. (1)
  14. c language all string functions - 559.97 hr back. (1)
Similar Topics

Keywords : string, library, functions, questions

  1. Time Functions Needed
    (9)
  2. Quite A Few Questions...
    C language (3)
    I've been meaning to learn to write C this week, and I am wondering what site could help me. I
    have a compiler (DJGPP) and I think it works since my older brother has compiled his C files with it
    before. Is it better to learn C++ first rather than learn C? Is there a certain sub-forum for C /
    C++ language here? What site would you suggest that I learn from?....
  3. Programing Windows Joystick
    Questions about windows joystick code (2)
    I have 2 joystick related questions. The first is, does anyone know if there is a driver that will
    allow me to use my joystick (actually 12button/3axis gamepad) to control my mouse pointer in
    windows95? I have one program that will allow me to do that (very indirectly) using windows
    accessability & the program that camewith my joystick. But it is exceedingly slow, because it uses 2
    forms of redirection. First it translates joystick movements to key presses (slow), then I use the
    windows accessability to translate that to mouse movements. But that is so slow, it's pr....
  4. C++ Graphics Or Chart Library
    (0)
    Hi, I am currently working on a project that requires plotting a large number of points on a
    graph. The number of data points is in the range of hundreds of millions, and the graphic (chart)
    library that I am currently using lags after about 1000 points plotted.
    http://msdn.microsoft.com/library/default....ary/en-us/mschr t/html/vbobjVtChartObject.asp So I
    was wondering if there is any graphic or chart library that you guys know of that can plot a huge
    number of data points at a relatively small period of time. Of course, other additional features are
    always welc....

    1. Looking for string, library, functions, questions






*SIMILAR VIDEOS*
Searching Video's for string, library, functions, questions
advertisement




String Library Functions - A few questions