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

can any one please tell me what is mean by back papers,back log,historical standing ????????? this mean history of arrears is it correct or not.........

2400


wats the difference between RS latch using NAND n NOR gate? which is to be preffered?

2312


what is difference between server 2008R1 and 2008 server R2?

1799


how many E1's in pasolink and ipasolink?

1798


AD backups and restoration

2052


tell me the e book for data structure (basic)

2110


i want questions only on code part like general logics in c and java

1839


program for inter process communicatin using message sharing in unix c

1879


Explain Belady's Anomaly.

2354


what do you mean by CPU register?

2057


Why did they used to make the mill chimneys so tall?

1340


what is the difference betweeen far pointer and near pointer

2279


why IT?

1984


What is the procedure for taking leave while detecting Epf and Esi?

2210


i have applied for junior engg. signal II please send me questions papers for it

1916