Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/branches/ckit/ckit/BUGS
ViewVC logotype

View of /sml/branches/ckit/ckit/BUGS

Parent Directory Parent Directory | Revision Log Revision Log

Revision 597 - (download) (annotate)
Wed Apr 5 18:34:51 2000 UTC (21 years, 9 months ago) by dbm
Original Path: sml/trunk/ckit/BUGS
File size: 797 byte(s)
Initial revision
ckit Bug List
[Last updated: 3/31/00]

SUBMITTER: Kathleen Fisher <kfisher@research.att.com>
DATE: 12/10/99
STATUS: request for more complete example

The code: 
void write_myArray (char *f, char *space, int size)
  Sfio_t *fp;
  int *temp_space = (int *) space;
  int i;

  fp = openfile (f,"w");
  for (i = 0; i<2; i++)
      sfprintf (fp,"%d",&(*temp_space)[i]);

passes through the ckit compiler, but cc reports:

"directory008.c", line 866: error(1138): expression must have
          pointer-to-object type
              sfprintf (fp,"%d",&(*temp_space)[i]);

COMMENT: Could not compile example (it is incomplete);
Kathleen indicates she can't reproduce this behaviour.

ViewVC Help
Powered by ViewVC 1.0.0