Click here to Skip to main content
15,906,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDelete a security group in VC 7.0 Pin
Member 13661824-Feb-03 5:49
Member 13661824-Feb-03 5:49 
GeneralRe: Delete a security group in VC 7.0 Pin
Dana Epp24-Feb-03 7:59
Dana Epp24-Feb-03 7:59 
Generallaunching dos programs(gui) Pin
eggman2124-Feb-03 5:39
eggman2124-Feb-03 5:39 
GeneralRe: launching dos programs(gui) Pin
jmkhael24-Feb-03 5:43
jmkhael24-Feb-03 5:43 
GeneralRe: launching dos programs(gui) Pin
eggman2124-Feb-03 7:04
eggman2124-Feb-03 7:04 
GeneralRe: launching dos programs(gui) Pin
Dana Epp24-Feb-03 14:46
Dana Epp24-Feb-03 14:46 
GeneralRe: launching dos programs(gui) Pin
eggman2125-Feb-03 5:05
eggman2125-Feb-03 5:05 
Generalsimple C function question Pin
Maximilien24-Feb-03 5:33
Maximilien24-Feb-03 5:33 
Good morning.

I never was a real C programmer, I went from Pascal to C++ ...

so, a small function design question :

I often see this kind of function where the output value is at the same time returned by the function and assigned to a output variable
 // C function 
char* DoSomething(double val, char *buff)
{
 // ...
 strcpy(buff, something);
 return buff;
}


Any explanation ?

Max.



Maximilien Lincourt
For success one must aquire one's self
GeneralRe: simple C function question Pin
jmkhael24-Feb-03 5:36
jmkhael24-Feb-03 5:36 
GeneralCTime question Pin
Anonymous24-Feb-03 4:53
Anonymous24-Feb-03 4:53 
GeneralRe: CTime question Pin
João Paulo Figueira24-Feb-03 5:09
professionalJoão Paulo Figueira24-Feb-03 5:09 
GeneralRe: CTime question Pin
jhwurmbach24-Feb-03 5:09
jhwurmbach24-Feb-03 5:09 
GeneralRe: CTime question Pin
Alvaro Mendez24-Feb-03 5:25
Alvaro Mendez24-Feb-03 5:25 
GeneralRe: CTime question Pin
Anonymous24-Feb-03 5:27
Anonymous24-Feb-03 5:27 
GeneralRe: CTime question Pin
Dave_24-Feb-03 9:39
Dave_24-Feb-03 9:39 
GeneralCopy constructor Pin
Jerome Conus24-Feb-03 4:27
Jerome Conus24-Feb-03 4:27 
GeneralRe: Copy constructor Pin
João Paulo Figueira24-Feb-03 4:37
professionalJoão Paulo Figueira24-Feb-03 4:37 
GeneralRe: Copy constructor Pin
Jerome Conus24-Feb-03 4:43
Jerome Conus24-Feb-03 4:43 
GeneralRe: Copy constructor Pin
João Paulo Figueira24-Feb-03 4:50
professionalJoão Paulo Figueira24-Feb-03 4:50 
GeneralRe: Copy constructor Pin
Jerome Conus24-Feb-03 4:53
Jerome Conus24-Feb-03 4:53 
GeneralRe: Copy constructor Pin
João Paulo Figueira24-Feb-03 5:02
professionalJoão Paulo Figueira24-Feb-03 5:02 
GeneralRe: Copy constructor Pin
Jerome Conus24-Feb-03 5:06
Jerome Conus24-Feb-03 5:06 
GeneralRe: Copy constructor Pin
Alvaro Mendez24-Feb-03 4:49
Alvaro Mendez24-Feb-03 4:49 
GeneralRe: Copy constructor Pin
Jerome Conus24-Feb-03 4:52
Jerome Conus24-Feb-03 4:52 
GeneralScrollbar HTMLView Pin
jeremysay24-Feb-03 4:15
jeremysay24-Feb-03 4:15 

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.