delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/06/26/17:15:20

From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Message-Id: <200206262115.g5QLFAN25126@speedy.ludd.luth.se>
Subject: FILE in stdio.h
To: DJGPP-WORKERS <djgpp-workers AT delorie DOT com>
Date: Wed, 26 Jun 2002 23:15:10 +0200 (CEST)
X-Mailer: ELM [version 2.4ME+ PL78 (25)]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

This is in <stdio.h>:

/* Note that the definitions of these fields are NOT guaranteed!  They
   may change with any release without notice!  The fact that they
   are here at all is to comply with ANSI specifictions. */

typedef struct {
  int     _cnt;
  char   *_ptr;
  char   *_base;
  size_t  _bufsiz;
  int     _flag;
  int     _file;
  char   *_name_to_remove;
  size_t  _fillsize;
} FILE;


It looks like there's no requirement to reveal the insides of FILE in
C99.

Do we want it made into an opaque type?

Or if I'm wrong, could somebody point out where in the C standard the
requirement is?


Right,

						MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019