Click here to Skip to main content
15,919,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Exception Pin
CPallini8-May-08 2:57
mveCPallini8-May-08 2:57 
AnswerRe: Exception [modified] Pin
Rajkumar R8-May-08 4:07
Rajkumar R8-May-08 4:07 
GeneralRe: Exception Pin
Stephen Hewitt8-May-08 17:04
Stephen Hewitt8-May-08 17:04 
GeneralRe: Exception Pin
Rajkumar R8-May-08 18:44
Rajkumar R8-May-08 18:44 
GeneralRe: Exception Pin
Anandi.VC8-May-08 21:24
Anandi.VC8-May-08 21:24 
QuestionHow to copy null terminatd buffer Pin
Programm3r8-May-08 1:59
Programm3r8-May-08 1:59 
AnswerRe: How to copy null terminatd buffer Pin
Cedric Moonen8-May-08 2:05
Cedric Moonen8-May-08 2:05 
GeneralRe: How to copy null terminatd buffer Pin
Programm3r8-May-08 2:25
Programm3r8-May-08 2:25 
OK, consider the following:

/* memcpy example */
#include <stdio.h>
#include <string.h>

int main ()
{
  char str1[]="Sample string";
  char str2[]="Another string";
  memcpy (str2,str1,strlen(str1)+1);
  printf ("Contents of buffer2:",str2);
  return 0;
}




The only programmers that are better that C programmers are those who code in 1's and 0's Green Alien | [Alien]


Smile | :) Programm3r

My Blog: ^_^

QuestionRe: How to copy null terminatd buffer Pin
CPallini8-May-08 2:29
mveCPallini8-May-08 2:29 
GeneralRe: How to copy null terminatd buffer Pin
Cedric Moonen8-May-08 2:32
Cedric Moonen8-May-08 2:32 
GeneralRe: How to copy null terminatd buffer Pin
Rajkumar R8-May-08 3:05
Rajkumar R8-May-08 3:05 
GeneralRe: How to copy null terminated buffer Pin
Programm3r8-May-08 4:19
Programm3r8-May-08 4:19 
GeneralRe: How to copy null terminated buffer Pin
Rajkumar R8-May-08 4:35
Rajkumar R8-May-08 4:35 
QuestionRe: How to copy null terminatd buffer Pin
CPallini8-May-08 2:06
mveCPallini8-May-08 2:06 
GeneralRe: How to copy null terminatd buffer Pin
Programm3r8-May-08 2:28
Programm3r8-May-08 2:28 
GeneralRe: How to copy null terminatd buffer Pin
Cedric Moonen8-May-08 2:34
Cedric Moonen8-May-08 2:34 
GeneralRe: How to copy null terminatd buffer Pin
Rajesh R Subramanian8-May-08 2:36
professionalRajesh R Subramanian8-May-08 2:36 
GeneralRe: How to copy null terminatd buffer Pin
Cedric Moonen8-May-08 2:43
Cedric Moonen8-May-08 2:43 
GeneralRe: How to copy null terminatd buffer Pin
Rajesh R Subramanian8-May-08 2:45
professionalRajesh R Subramanian8-May-08 2:45 
GeneralRe: How to copy null terminatd buffer Pin
CPallini8-May-08 2:49
mveCPallini8-May-08 2:49 
GeneralRe: How to copy null terminatd buffer Pin
Rajesh R Subramanian8-May-08 2:54
professionalRajesh R Subramanian8-May-08 2:54 
QuestionRe: How to copy null terminatd buffer Pin
CPallini8-May-08 2:35
mveCPallini8-May-08 2:35 
AnswerRe: How to copy null terminatd buffer Pin
Rajesh R Subramanian8-May-08 2:33
professionalRajesh R Subramanian8-May-08 2:33 
GeneralRe: How to copy null terminatd buffer Pin
CPallini8-May-08 2:46
mveCPallini8-May-08 2:46 
GeneralRe: How to copy null terminatd buffer Pin
Rajesh R Subramanian8-May-08 2:47
professionalRajesh R Subramanian8-May-08 2:47 

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.