Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/04/02 20:06
Read: times


 
#22511 - RE: passing variable argument type to fn
"I can use the sizeof() to deterimine the type"

NO you can't. sizeof is purely a compile time function.

Similarly, "types" such as int, char are purely compile time concepts - the compiler uses them to decide what code to generate, but they do not appear anywhere in the generated code.

You will need to pass two parameters to your function:
1. a pointer to the value to write;
2. its size.

List of 7 messages in thread
TopicAuthorDate
passing variable argument type to fn            01/01/70 00:00      
RE: passing variable argument type to fn            01/01/70 00:00      
RE: passing variable argument type to fn            01/01/70 00:00      
RE: passing variable argument type to fn            01/01/70 00:00      
RE: passing variable argument type to fn            01/01/70 00:00      
RE: passing variable argument type to fn            01/01/70 00:00      
RE: passing variable argument type to fn            01/01/70 00:00      

Back to Subject List