gljr
asked on
example for a variable parameter list function?
basically I'd like to re-direct the fprintf function..
to allow me a little more control of error messages.
the idea is simple, write a new function
flogf( "a format string - %s %d %c \n", var1, var2,... );
then define flogf to pass these variables through and write to either stderr, to a file, or both depending on the configuration...
Does anyone have an example to illustrate how this is done?
thx, George
to allow me a little more control of error messages.
the idea is simple, write a new function
flogf( "a format string - %s %d %c \n", var1, var2,... );
then define flogf to pass these variables through and write to either stderr, to a file, or both depending on the configuration...
Does anyone have an example to illustrate how this is done?
thx, George
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Is there anything else you'd like to know?
ASKER
Thanks jkr,
Actually, I found a similar example about the same time
you published this one.. and I don't think it will be efficient to use this right now.. but I really do apreciate your promtness :-)
George
Actually, I found a similar example about the same time
you published this one.. and I don't think it will be efficient to use this right now.. but I really do apreciate your promtness :-)
George
ASKER
Thanks jkr,
Actually, I found a similar example about the same time
you published this one.. and I don't think it will be efficient to use this right now.. but I really do appreciate your promtness :-)
George
Actually, I found a similar example about the same time
you published this one.. and I don't think it will be efficient to use this right now.. but I really do appreciate your promtness :-)
George