Click here to Skip to main content

ATL / WTL / STL

 
Questionbetter version of strcpy() and printf() Pinmemberbkelly1315-Sep-12 11:02 
There are numerous versions of the basic copy function, too many now. some of the new versions are declared safer because they incorporate a limiting count value.   However, all the ones I have tried and inadvertenly tested just crash the application.   I find that rather rude.

Are there any versions of ...cpy...() and ...printf...() that limit the count of characters copied to the space found in the destination string.   Without an ungracefull app crash?

Thanks for your time
AnswerRe: better version of strcpy() and printf() PinmentorPaul Watt15-Sep-12 13:33 
GeneralRe: better version of strcpy() and printf() Pinmemberbkelly1315-Sep-12 16:34 
GeneralRe: better version of strcpy() and printf() PinmentorPaul Watt15-Sep-12 16:45 
GeneralRe: better version of strcpy() and printf() Pinmemberbkelly1315-Sep-12 17:23 
GeneralRe: better version of strcpy() and printf() Pinmemberpasztorpisti16-Sep-12 7:54 
GeneralRe: better version of strcpy() and printf() PinmvpRichard MacCutchan16-Sep-12 1:10 
AnswerRe: better version of strcpy() and printf() PinmemberRichard Andrew x6415-Sep-12 18:01 
AnswerRe: better version of strcpy() and printf() PinmvpRichard MacCutchan16-Sep-12 1:09 
AnswerRe: better version of strcpy() and printf() Pinmemberpasztorpisti16-Sep-12 2:37 
AnswerRe: better version of strcpy() and printf() PinmemberStephen Hewitt18-Sep-12 1:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.150414.1 | Last Updated 13 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid