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

    


Copy a string
 

 

 

Description

This shows how using the strcpy( ) function we can copy one string to another.

Code


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

int main()
{
char title[] = "Programmers help : C section";
char url[70];
strcpy(url , title);
printf("Welcome to %s ",url);
return 0;
}

Information

tested using LCC Win 32

 

 

 

 

Download

strcpy.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
swap mouse buttons(VB)
Show MySQL tables(PHP)
display how many seconds windows has been running(VB)
circular form(VB)
Send a line of chat to AOL 3(VB)
Join array items to form a string(ASP)
Status bar clock(Javascript)
updating clock(PHP)

    




Copyright © 2003 by programmershelp.co.uk