Trouble readn' and writn' in C

Usenet file owner usenet at cps3xx.UUCP
Thu Jun 22 06:32:33 AEST 1989


in article <3037 at csd4.milw.wisc.edu>, mag2 at csd4.milw.wisc.edu (Michael A Gorski) says:
$ I am writing a program in Turbo C 1.5 and am having trouble writing
$ structures to a disk file.
$ When I just do a DOS type file (yes I know it isn't a text file) the char
$ fields in the struct are off by 1. 

Sounds like problems with word aligned data when you want byte aligned
data. Check the manual, there should be a compile line option
to control this.

John H. Lawitzke           UUCP: Work: ...uunet!frith!dale1!jhl
Dale Computer Corp., R&D         Home  ...uunet!frith!ipecac!jhl
2367 Science Parkway       Internet:   jhl at frith.egr.msu.edu
Okemos, MI, 48864                             [35.8.8.108]



More information about the Comp.lang.c mailing list