answersLogoWhite

0

/* this is the same functionality as strcpy() */

/* note that this, like strcpy, is not buffer overrun safe */

char *StringCopy (char *destination, const char *source) {

const char *temp = destination;

while ((*destination++ = *source++) != '\0');

return temp;

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you concatenate strings in C programming?

strcat if u wnt to use strcat then include string.h header file


What purpose do strings serve in programming?

Strings are a type of variable in computer programming. Simply put, they contain multiple characters which are "strung" together to make a piece of text. "Test", "House", and "Hello World!" are all excellent examples of what might be contained in a string. As a result, strings are used to store and convey any textual information.


How can I efficiently remove all occurrences of C strings from a given text or data set?

To efficiently remove all occurrences of C strings from a given text or data set, you can use a programming language like Python or C to search for and replace the C strings with an empty string. This can be done using functions like replace() in Python or std::string::replace() in C.


What are the two major types of programming languages in c plus plus?

Object oriented programming and structured programming.


What programming languages use a C switch statement?

There are two programming languages which use a C switch statement. The two languages are C and C++, hence the name C switch statement. There may be more, but those are the most obvious ones


What are two types of programming languages?

C++, Perl, Fortran


'c' code to compare two strings using strcmp function?

char one [] = "A string" ;char two [] = "Different String" ;if (strcmp (one, two) == 0){puts ("The two strings are identical") ;}else{puts ("The two strings are different") ;}


Is copying your C Drive on to an external drive the same as copying it on to an external drive?

Of course it would. If you are copying your C Drive onto an external drive, then are copying it to an external drive, aren't you?


How c strings are terminated?

c strings are terminated by \0 character


What are pointers in c programming language?

Pointers are variables that hold the address to a memory location. It makes copying/assignment very efficient, since it eliminates the need for copying entire memory blocks...only the address is copied. This is useful for example for function arguments.


How do you tune a 6 string ukulele?

It will have the basic G, C, E, A tuning, with the two additional strings. These are paired with the C and A strings. The second "A" string is tuned to the same note as the other "A" string. The additional "C" string is going to be either an octave up or down. The strings in order will be G, C, C', E, A, A.


What is c and c in computer programming?

C and C++ are both high-level programming languages.