Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

date function override

Status
Not open for further replies.

gshacte

Programmer
Nov 15, 2000
4
US
When the aix date function is called by a routine, is the date function 'aware' of the routine that is calling it, such that if we had the source code of the date function, we could modify it such that it provides a date depending upon who is calling. This would enhance our testing ability of particular functions without disrupting the rest of a test system.
 
> is the date function 'aware' of the routine that is calling it
No.
Debuggers can read the stack, and symbol information to help with debugging, but to actually write all that into the code as well would be no small task.

> if we had the source code of the date function, we could modify it such that it provides
> a date depending upon who is calling.
Do you have the source code, or is this some academic exercise?

--
 
Thanks for your reply. We don't have the source code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top