Click here to Skip to main content
15,899,937 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CEdit :ModifyStyle Pin
Mark Salsbery31-May-07 5:32
Mark Salsbery31-May-07 5:32 
QuestionMicrosecond Timing Pin
LMCer30-May-07 4:27
LMCer30-May-07 4:27 
AnswerRe: Microsecond Timing Pin
Cedric Moonen30-May-07 4:30
Cedric Moonen30-May-07 4:30 
GeneralRe: Microsecond Timing Pin
LMCer30-May-07 4:34
LMCer30-May-07 4:34 
AnswerRe: Microsecond Timing Pin
CPallini30-May-07 4:41
mveCPallini30-May-07 4:41 
GeneralRe: Microsecond Timing Pin
LMCer30-May-07 4:49
LMCer30-May-07 4:49 
GeneralRe: Microsecond Timing Pin
CPallini30-May-07 5:01
mveCPallini30-May-07 5:01 
QuestionHow can I improve this Function Pin
joshp121730-May-07 4:08
joshp121730-May-07 4:08 
I am getting back into C++(be doing C# heavey for the past few years), Can anyone give me some help on how I can improve the function so no problems dont arise when it is run? I appreciate the help you guys.


void* memcpy( void* dest, void* src, size_t size )
{
byte* pTo = (byte*)dest;
byte* pFrom = (byte*)src;

assert( dest != NULL && src != NULL );

while( size-- > 0 )
*pTo++ = *pFrom++;

return (dest);
}


Thanks.


JokeRe: How can I improve this Function Pin
CPallini30-May-07 4:27
mveCPallini30-May-07 4:27 
GeneralRe: How can I improve this Function Pin
joshp121730-May-07 4:28
joshp121730-May-07 4:28 
GeneralRe: How can I improve this Function Pin
CPallini30-May-07 5:02
mveCPallini30-May-07 5:02 
GeneralRe: How can I improve this Function Pin
joshp121730-May-07 5:04
joshp121730-May-07 5:04 
GeneralRe: How can I improve this Function Pin
CPallini30-May-07 5:13
mveCPallini30-May-07 5:13 
GeneralRe: How can I improve this Function Pin
Chris Losinger30-May-07 7:35
professionalChris Losinger30-May-07 7:35 
AnswerRe: How can I improve this Function Pin
David Crow30-May-07 6:03
David Crow30-May-07 6:03 
AnswerRe: How can I improve this Function Pin
Michael Sadlon30-May-07 7:33
Michael Sadlon30-May-07 7:33 
GeneralRe: How can I improve this Function Pin
David Crow30-May-07 8:17
David Crow30-May-07 8:17 
AnswerRe: How can I improve this Function Pin
Matthew Faithfull30-May-07 8:13
Matthew Faithfull30-May-07 8:13 
GeneralRe: How can I improve this Function Pin
joshp121731-May-07 6:04
joshp121731-May-07 6:04 
AnswerRe: How can I improve this Function Pin
Stephen Hewitt30-May-07 14:05
Stephen Hewitt30-May-07 14:05 
Questiondouble = (int/int)*(int/int) Pin
Immunity1830-May-07 4:00
Immunity1830-May-07 4:00 
AnswerRe: double = (int/int)*(int/int) Pin
Cedric Moonen30-May-07 4:04
Cedric Moonen30-May-07 4:04 
GeneralRe: double = (int/int)*(int/int) Pin
Immunity1830-May-07 4:05
Immunity1830-May-07 4:05 
GeneralRe: double = (int/int)*(int/int) Pin
Immunity1830-May-07 4:15
Immunity1830-May-07 4:15 
GeneralRe: double = (int/int)*(int/int) Pin
toxcct30-May-07 5:02
toxcct30-May-07 5:02 

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

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