This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: ftstc implementation
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: Suhas Chakravarty <suhas dot chakravarty at gmail dot com>
- Cc: "libc-help at sourceware dot org" <libc-help at sourceware dot org>
- Date: Sat, 9 Aug 2014 16:58:14 +0200
- Subject: Re: ftstc implementation
- Authentication-results: sourceware.org; auth=none
- References: <CABKwiS_RQpKE6Q_SM9QS-bH-6wDEP+nOMhiEaU7h6hS7dJfs1w at mail dot gmail dot com> <CABKwiS8fc=Mx92i0tiO0O-PS-ahmfwqL6gK-_NsRrEht+51s1Q at mail dot gmail dot com>
On Wed, Aug 6, 2014 at 2:26 PM, Suhas Chakravarty
<suhas.chakravarty@gmail.com> wrote:
> Is ftstc()'s implementation provided as part of libc? It tests for the
> presence of a char in stdin/file.
The ftstc() function is not provided by glibc.
I'm not that familiar with these functions, but believe they are BSD
extensions and that tstc() also exists, but is not implemented by
glibc.
Why do you ask? Are you porting software to GNU/Linux and finding that
glibc doesn't provide these functions?
Do you have a reference anywhere that explains what these functions do?
Cheers,
Carlos.