Mail Archives: djgpp/1998/03/12/15:15:38
From: | Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: DJGPP and UNIX-gcc
|
Date: | Thu, 12 Mar 1998 21:06:32 +0100
|
Organization: | Lehrstuhl fuer Stroemungsmechanik
|
Lines: | 39
|
Message-ID: | <35084048.C0522895@LSTM.Ruhr-UNI-Bochum.De>
|
References: | <3507AD92 DOT 41C6 AT cc DOT hut DOT fi>
|
NNTP-Posting-Host: | bvb.lstm.ruhr-uni-bochum.de
|
Mime-Version: | 1.0
|
Xcanpos: | shelf.01/199803270101!0008606730
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Ville Lundberg wrote:
>
> I made a couple small programs at home on my PC and wanted them on my
> UNIX-account as well, but when I compiled them with the UNIX gcc, there
> were some errors. Why differs the UNIX so much from DJGPP? My programs
> were really simple, containing strcpy(), conio.h, getch() etc. (it was
> about those the gcc complained about). Some of my programs worked well.
> My program asks for a password and I need a getchar-function that
> does not echo to screen. How do I do this on UNIX? Do anyone know where
> to find a manual to the UNIX gcc on the net, or a comparison between
> DJGPP and gcc?
A portability section on libc is in the works, but that won't help you
right now...
strcpy(), getch() should work on UNIX systems, conio.h is not
there. getpass() from stdlib is what you are looking for.
So what you'd do is omething like:
char *pwd;
pwd = getpass("Enter password:");
If your UNIX gcc is installed correctly,
info libc alpha
should give you information about the specific libc on that
system. Unless you use AIX, where "info" is a brain dead help
data base for sysops. Then try /usr/local/bin/info or alikes.
--
Ciao
Tom
*************************************************************
* Thomas Demmer *
* Lehrstuhl fuer Stroemungsmechanik *
* Ruhr-Uni-Bochum *
* Universitaetsstr. 150 *
* D-44780 Bochum *
* Tel: +49 234 700 6434 *
* Fax: +49 234 709 4162 *
* http://www.lstm.ruhr-uni-bochum.de/~demmer *
*************************************************************
- Raw text -