Click here to Skip to main content
15,313,293 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to proceed and execute LDPC decoding using Data Structure in C Pin
leon de boer27-Jun-17 5:36
Memberleon de boer27-Jun-17 5:36 
GeneralRe: How to proceed and execute LDPC decoding using Data Structure in C Pin
Member 1326117527-Jun-17 19:19
MemberMember 1326117527-Jun-17 19:19 
QuestionDisecting a PE File, Revisited Pin
Bram van Kampen26-Jun-17 14:56
MemberBram van Kampen26-Jun-17 14:56 
Questionhow to use memset to fill a char array with space key? Pin
focusdoit25-Jun-17 3:01
Memberfocusdoit25-Jun-17 3:01 
AnswerRe: how to use memset to fill a char array with space key? Pin
leon de boer25-Jun-17 3:12
Memberleon de boer25-Jun-17 3:12 
GeneralRe: how to use memset to fill a char array with space key? Pin
focusdoit25-Jun-17 3:53
Memberfocusdoit25-Jun-17 3:53 
GeneralRe: how to use memset to fill a char array with space key? Pin
harold aptroot25-Jun-17 4:03
Memberharold aptroot25-Jun-17 4:03 
GeneralRe: how to use memset to fill a char array with space key? Pin
focusdoit25-Jun-17 4:11
Memberfocusdoit25-Jun-17 4:11 
in fact, it's snprintf() reason. snprintf seems fill out the gap in a string with '\0'.

the code like:
memset	(msgArray, ' ', 100);
snprintf (msgArray,		2,					"%d", 1);
snprintf (messageArray+10,	33,	"%s", "main");


I assume the string should output like:
1 main
but debugged it. it is : 1,\0, ' ', ' ', .. main, \0, ..
GeneralRe: how to use memset to fill a char array with space key? Pin
harold aptroot25-Jun-17 4:23
Memberharold aptroot25-Jun-17 4:23 
GeneralRe: how to use memset to fill a char array with space key? Pin
Rick York26-Jun-17 7:50
mveRick York26-Jun-17 7:50 
GeneralRe: how to use memset to fill a char array with space key? Pin
leon de boer26-Jun-17 8:05
Memberleon de boer26-Jun-17 8:05 
QuestionC programming Determine Students grade Pin
hoangtrungl22-Jun-17 22:47
Memberhoangtrungl22-Jun-17 22:47 
AnswerRe: C programming Determine Students grade Pin
OriginalGriff22-Jun-17 22:54
mveOriginalGriff22-Jun-17 22:54 
AnswerRe: C programming Determine Students grade Pin
Jochen Arndt22-Jun-17 23:12
professionalJochen Arndt22-Jun-17 23:12 
QuestionRe: C programming Determine Students grade Pin
David Crow23-Jun-17 4:05
MemberDavid Crow23-Jun-17 4:05 
AnswerRe: C programming Determine Students grade Pin
Bram van Kampen28-Jun-17 12:35
MemberBram van Kampen28-Jun-17 12:35 
QuestionHow to solve this compiler error. Pin
pankajkumar21-Jun-17 2:42
Memberpankajkumar21-Jun-17 2:42 
NewsRe: How to solve this compiler error. Pin
Jochen Arndt21-Jun-17 3:23
professionalJochen Arndt21-Jun-17 3:23 
GeneralRe: How to solve this compiler error. Pin
pankajkumar23-Jun-17 2:19
Memberpankajkumar23-Jun-17 2:19 
GeneralRe: How to solve this compiler error. Pin
Jochen Arndt23-Jun-17 2:41
professionalJochen Arndt23-Jun-17 2:41 
AnswerRe: How to solve this compiler error. Pin
Victor Nijegorodov21-Jun-17 8:39
MemberVictor Nijegorodov21-Jun-17 8:39 
GeneralRe: How to solve this compiler error. Pin
pankajkumar23-Jun-17 2:26
Memberpankajkumar23-Jun-17 2:26 
GeneralRe: How to solve this compiler error....changed IDE Pin
pankajkumar23-Jun-17 23:11
Memberpankajkumar23-Jun-17 23:11 
AnswerRe: How to use LM317T? Pin
Richard MacCutchan21-Jun-17 2:24
mveRichard MacCutchan21-Jun-17 2:24 
AnswerRe: How to use LM317T? Pin
leon de boer21-Jun-17 2:40
Memberleon de boer21-Jun-17 2:40 

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.