Mail Archives: djgpp/1995/05/15/04:03:34
>>pause() is not in the V1 libraries, but it should be in the V2 ones, as it
>>is a standard POSIX function [although POSIX declares it as returning int].
>>If you absolutely need to use a different function of the same name,
>>then you can do something like this:
>>
>>#define pause PAUSIX
>>#include <djgppstd.h>
>>#undef pause
>>
>>[which makes djgppstd.h declare PAUSIX() rather than pause()].
Oh, and you should probably follow Bill Davidson's advice in terms of multiple
#includes if you want to use the above method.
>Thanks for the info. Since it conflicts with a standard function I will
>probably rename this function in my code for compatibility. What is the
That will, of course, also work, and is probably the best overall solution.
>POSIX function implemented by pause()? In my application(s) it simply prints
>a message to the screen
>
>Press any key to continue...
>
>and returns ( after the 'any' key is pressed, of course :). Is this similar
>to the POSIX function?
Not exactly. POSIX pause() makes your program sleep until it receives a
signal.
>Hmm.. PAUSIX... seems quite appropriate.
Thanks.
--- Aaron Ucko (ucko AT vax1 DOT rockhurst DOT edu; finger for PGP public key) | httyp!
Geek code 2.1 [for explanation, finger hayden@ | `God's Laws' (Rudy Rucker,
vax1.mankato.msus.edu]: GCS/M/S d(-) H s g+ p? \ _Master of Space and Time_):
!au a17 w+ v+(++) C++(+++)>++++ UL++(S+)>++++ \ 1) Be clean. 2) Follow Gary.
P+(++) L++ 3(-) E- N+(++) K- W--(---) M-@ V-(--) \ 3) Teach God's Laws.
po-(--) Y+ t(+) !5 j(++) R(-) G' tv--(-) b+++ +---------------------------
!D(--) B--(---) e>++++(*) u++(@) h!() f(+) r-(--)>+++ n+(-) y?
- Raw text -