answersLogoWhite

0


Best Answer

char* u_strcpy (char* dest, const char* src) {

char* temp = dest;

while ((*dest++ = *src++) != '\0');

return temp;

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write a user define function of strcpy?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How to create user define function of my name in c?

You need to declare it first. A function declaration is made of three parts: The kind of data the function returns, I.E. void, int, etc. The name of the function, I.E. helloWorld. The list of parameters in parentheses, I.E. (A as int, B as char) For an example, here it is: void helloWorld(); Now, to put something inside the function, you can write the following: void helloWorld() { printf("Hello world!"); }


What are the different types of overloading allowed in c plus plus?

There are only two types: user-defined and compiler-generated. User-defined overloads are the ones you specifically write. Compiler-generated overloads are created by the compiler based upon a template function that you define. The only real difference is that with a template function you only need to write one version of the function, and the compiler will generate the actual overloads on an as-required basis. With user-defined overloads you must write each overload in full. Template functions save a lot of time and maintenance, however they are only practical when the only difference between the overloads is the type of argument. That is, if the implementation is exactly the same regardless of type, then template functions are clearly a better option than writing out each overload by hand. Moreover, if you ever need to alter the implementation, there's only one function to modify.


How do you know whether the function is 'user define' or 'library functions'?

If you have written it yourself, then it is the former, otherwise it is the latter.


What is user define package?

A user defined package is a package outside of the standard Java libraries.


What is the difference between Built in Function and User Defined Function?

Built-in functions are functions that are provided for you by the standard includes. User-defined functions are those that you write yourself. Third-party functions are those that are written for you, but that are not provided by the standard includes.

Related questions

Differences between user define function and uild in?

The person who created them.For example, you don't have to write an 'sprintf'function, because you already have it in the standard libraries.


What Difference between built-in function and user define function?

Built-in functions are functions that are provided for you by the standard includes. User-defined functions are those that you write yourself. Third-party functions are those that are written for you, but that are not provided by the standard includes.


What is the way by which you can make the user defined the size of the arrays?

By using the library function #define A[] we can define the size of arrays


How to know whether the function is user define function or library function?

You don't have to know. Library functions are also written by somebody, aren't they?


What is the user defined function section in C language?

There are no 'sections' in C source, you can define functions anywhere, except inside another function or variable/type definition.


What can a function be defined as?

Definition: By function We Means In C which Perform Some Specific Task..e.g Print Scan etc. The function Should Inclosed of Parantheses. There Are two Types Of Function 1.User Define Function 2.Built in function


Why main is called user define function?

It simply means that main is not part of a pre-written library like printf or sleep.


What are the different user define data typesexplain with example?

what are the different user define data types explain with example


Define process according to user interactionin operatin system?

4. Define process according to user interaction?


How to create user define function of my name in c?

You need to declare it first. A function declaration is made of three parts: The kind of data the function returns, I.E. void, int, etc. The name of the function, I.E. helloWorld. The list of parameters in parentheses, I.E. (A as int, B as char) For an example, here it is: void helloWorld(); Now, to put something inside the function, you can write the following: void helloWorld() { printf("Hello world!"); }


How to define a user defined function in SQL?

Not possible in SQL, but possible in many vendor-specific SQL-based languages like Oracle PL/SQL.


What are the different types of overloading allowed in c plus plus?

There are only two types: user-defined and compiler-generated. User-defined overloads are the ones you specifically write. Compiler-generated overloads are created by the compiler based upon a template function that you define. The only real difference is that with a template function you only need to write one version of the function, and the compiler will generate the actual overloads on an as-required basis. With user-defined overloads you must write each overload in full. Template functions save a lot of time and maintenance, however they are only practical when the only difference between the overloads is the type of argument. That is, if the implementation is exactly the same regardless of type, then template functions are clearly a better option than writing out each overload by hand. Moreover, if you ever need to alter the implementation, there's only one function to modify.