Click here to Skip to main content
14,643,989 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting 2203 error while doing silent installation of MSI Pin
Dave Kreskowiak31-Mar-20 4:55
mveDave Kreskowiak31-Mar-20 4:55 
QuestionFinding a directory Pin
Anthony Appleyard29-Mar-20 18:32
MemberAnthony Appleyard29-Mar-20 18:32 
AnswerRe: Finding a directory Pin
leon de boer29-Mar-20 20:26
Memberleon de boer29-Mar-20 20:26 
QuestionPassing an array as argument to a function Pin
CalinNegru(fearless_)28-Mar-20 22:15
MemberCalinNegru(fearless_)28-Mar-20 22:15 
AnswerRe: Passing an array as argument to a function Pin
Richard MacCutchan28-Mar-20 22:34
mveRichard MacCutchan28-Mar-20 22:34 
GeneralRe: Passing an array as argument to a function Pin
CalinNegru(fearless_)28-Mar-20 22:59
MemberCalinNegru(fearless_)28-Mar-20 22:59 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan28-Mar-20 23:23
mveRichard MacCutchan28-Mar-20 23:23 
GeneralRe: Passing an array as argument to a function Pin
CalinNegru(fearless_)28-Mar-20 23:44
MemberCalinNegru(fearless_)28-Mar-20 23:44 
I edited my previous post a bit

also
void myFunc(char* somedata)
{
    strcpy(somedata, "Good stuff");
    return;
}

//...
char myArray[] = "Bad stuff";
myFunc(myArray);
printf("Returned value %s\n", myArray);


Quote:
void myFunc(char* somedata)
{
strcpy(somedata, "Good stuff");
return;
}

//...
char myArray[] = "Bad stuff";
myFunc(myArray);
printf("Returned value %s\n", myArray);


will this function? the array has 9 elements(bad stuff 9 chars.) "good stuff" is 10.

modified 29-Mar-20 6:10am.

GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan28-Mar-20 23:55
mveRichard MacCutchan28-Mar-20 23:55 
GeneralRe: Passing an array as argument to a function Pin
CalinNegru(fearless_)29-Mar-20 0:48
MemberCalinNegru(fearless_)29-Mar-20 0:48 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan29-Mar-20 0:50
mveRichard MacCutchan29-Mar-20 0:50 
GeneralRe: Passing an array as argument to a function Pin
CalinNegru(fearless_)29-Mar-20 1:14
MemberCalinNegru(fearless_)29-Mar-20 1:14 
GeneralRe: Passing an array as argument to a function Pin
k505429-Mar-20 4:03
mvek505429-Mar-20 4:03 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan29-Mar-20 4:18
mveRichard MacCutchan29-Mar-20 4:18 
GeneralRe: Passing an array as argument to a function Pin
leon de boer29-Mar-20 4:23
Memberleon de boer29-Mar-20 4:23 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan29-Mar-20 4:28
mveRichard MacCutchan29-Mar-20 4:28 
GeneralRe: Passing an array as argument to a function Pin
k505429-Mar-20 4:34
mvek505429-Mar-20 4:34 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan29-Mar-20 5:48
mveRichard MacCutchan29-Mar-20 5:48 
GeneralRe: Passing an array as argument to a function Pin
Stefan_Lang30-Mar-20 23:05
mveStefan_Lang30-Mar-20 23:05 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan30-Mar-20 23:37
mveRichard MacCutchan30-Mar-20 23:37 
GeneralRe: Passing an array as argument to a function Pin
leon de boer29-Mar-20 15:31
Memberleon de boer29-Mar-20 15:31 
GeneralRe: Passing an array as argument to a function Pin
Greg Utas29-Mar-20 2:19
professionalGreg Utas29-Mar-20 2:19 
GeneralRe: Passing an array as argument to a function Pin
CalinNegru(fearless_)29-Mar-20 2:58
MemberCalinNegru(fearless_)29-Mar-20 2:58 
GeneralRe: Passing an array as argument to a function Pin
leon de boer29-Mar-20 4:11
Memberleon de boer29-Mar-20 4:11 
GeneralRe: Passing an array as argument to a function Pin
Greg Utas29-Mar-20 5:54
professionalGreg Utas29-Mar-20 5:54 

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.