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
extract a zip file to a folder(PHP)
Upper or Lower case(ASP)
ActiveX controls supported(ASP.net)
check a file exists(php)
Ban a user based on IP address(ASP)
gethostbyaddr function(PHP)
Salon.com news(PHP)
Previous page button(Javascript)

    




Copyright © 2003 by programmershelp.co.uk