Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript Site
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

US Job listings




   Misc

   Amazon

   Links

    


Join 2 strings
 

 

 

Description

This shows how to concatenate (join together ) the contents of one string onto another string . We achieve this by using the strcat( ) function . This requires that you include the <string.h> ..

Code

#include <stdio.h>
#include <string.h>

int main()
{
char name[100] = "Programmers help : ";
strcat(name, " C section .");
printf("%s",name);
return 0;
}

Information

tested using LCC Win 32

 

 

 

 

Download

strcat.txt


 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
Starfield(Pascal)
Find out part of a date(ASP)
Do While loop(Javascript)
Referring page(Javascript)
Count words in a sentence(ASP)
a movable target(Darkbasic)
vertical box scroller(Javascript)
File system object examples(VB)

    




Copyright © 2003 by programmershelp.co.uk