Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Difference between strdup and strcpy in c language?

Answer Posted / kalai

strcpy - copy a string to a location YOU created (you create the location, make sure that the source string will have enough room there and afterwards use strcpy to copy)
strdup - copy a string to a location that will be created by the function. The function will allocate space, make sure that your string will fit there and copy the string. Will return a pointer to the created area.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which field is comparitively very best , today and in future while considering the following : ELECTRONICS [OR] NETWORKING

1836


Whet is KCFT and difference between CFM and KCFT

1854


Requesting for AMVI genaral studies syllabus

2012


A rectangular beam section of 300 mm width and 500 mm effective depth is reinforced with 4 bars of 20 mm diameter, what shear reinforcement is required to resist 200 kN shear (use working stress method)?

2022


What is the difference between "type testing" and "product qualification"?

1546


how to cable size by Amp with example

2652


i am satish i want to preapare for group-1 exams so please help me?

2098


how to create user name stape by stape in cisco router {with command}

3121


Tell me about a time when you had too many things to do and you were required to prioritize your tasks

1886


what is rapid application development

1771


HI i have 2 year manual testing exp from MNC in pune but due to some reason i am looking job in testing . Friends hepl me to get the job i am not getting calls. alim24@gmail.com.09860643281

2403


what is advantages and disadvantages of vlan?

4343


why you are suitable to work here???? plzz give me the ans f this Q. i was told to write 200 words on the spot....

2181


How do you reset or reseed the IDENTITY column?

2046


find the salary of an employee where employee number is known

1933