CS411/511. Operating Systems

Maillist Archive, Spring 1999

Thread Index | Author Index | Subject Index | Date Index


Mail Index [Date Prev][Date Next][Thread Prev][Thread Next]

printing the hook


Since this was such a popular question:

If you want to print out the hook field of your pcb, you'll need to use
the same trick of setting a pointer to a double equal to the hook, then
using the dereferenced temporary variable in the printf.

double *temp_ptr = pcb->hook;
printf("this is the hook %f", *temp_ptr);

________________________________________________________________________
Keith D. Vertanen                         "To know is nothing at all; 
Oregon State University	                   to imagine is everything."
vertanen@cs.orst.edu	                      -Anatole Thibault
www.cs.orst.edu/~vertanen                   




Thread Index | Author Index | Subject Index | Date Index