Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Keith Thompson <kst-u@mib.org> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Ok how do I do this |
| Date | 2015-12-12 18:41 -0800 |
| Organization | None to speak of |
| Message-ID | <lnio43f4t3.fsf@kst-u.example.com> (permalink) |
| References | <n4i624$det$1@dont-email.me> <lnbn9vgp9v.fsf@kst-u.example.com> <n4iipp$p6o$1@dont-email.me> <ln4mfngl0o.fsf@kst-u.example.com> <n4ikjf$tl5$1@dont-email.me> |
"Bill Cunningham" <nospam@nspam.invalid> writes:
> "Keith Thompson" <kst-u@mib.org> wrote in message
> news:ln4mfngl0o.fsf@kst-u.example.com...
[...]
>> If you're trying to initialize each byte to 0xFF, but "0x4646
>> would be ok", then I must conclude that you have no more of a clue
>> about what you're trying to accomplish than I have.
>
> Ok If I used this command on a unix console,
>
> hexdump -n 512 file.com
>
> 0...
> 0200...
>
> Was all 0xFF I would sing like a bird. I have no idea how to accomplish it
> and it might not be practical. But it's an experiment. Maybe more than I can
> chew. A series likewise only 0x4646 would be ok too. An accomplished
> pattern.
You've asked how to initialize an array. For some unknown reason,
you've defined it as an array of unsigned int (why?).
How do you expect the contents of the array to get into your file?
(I'd ask why you decided to name the file with a ".com" extension, but
it doesn't matter.)
[...]
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Ok how do I do this "Bill Cunningham" <nospam@nspam.invalid> - 2015-12-12 17:13 -0500
Re: Ok how do I do this Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-12-12 17:27 -0500
Re: Ok how do I do this "Bill Cunningham" <nospam@nspam.invalid> - 2015-12-12 17:30 -0500
Re: Ok how do I do this Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-12-12 14:40 -0800
Re: Ok how do I do this Jerry Stuckle <jstucklex@attglobal.net> - 2015-12-12 17:55 -0500
Re: Ok how do I do this "Bill Cunningham" <nospam@nspam.invalid> - 2015-12-12 18:01 -0500
Re: Ok how do I do this "Osmium" <r124c4u102@comcast.net> - 2015-12-12 17:20 -0600
Re: Ok how do I do this Keith Thompson <kst-u@mib.org> - 2015-12-12 16:34 -0800
Re: Ok how do I do this "Bill Cunningham" <nospam@nspam.invalid> - 2015-12-12 20:51 -0500
Re: Ok how do I do this "Osmium" <r124c4u102@comcast.net> - 2015-12-12 20:00 -0600
Re: Ok how do I do this "Osmium" <r124c4u102@comcast.net> - 2015-12-12 20:01 -0600
Re: Ok how do I do this Keith Thompson <kst-u@mib.org> - 2015-12-12 18:06 -0800
Re: Ok how do I do this "Bill Cunningham" <nospam@nspam.invalid> - 2015-12-12 21:21 -0500
Re: Ok how do I do this Keith Thompson <kst-u@mib.org> - 2015-12-12 18:41 -0800
Re: Ok how do I do this "Bill Cunningham" <nospam@nspam.invalid> - 2015-12-12 21:12 -0500
Re: Ok how do I do this Keith Thompson <kst-u@mib.org> - 2015-12-12 18:28 -0800
Re: Ok how do I do this Ian Collins <ian-news@hotmail.com> - 2015-12-13 13:56 +1300
Re: Ok how do I do this Jorgen Grahn <grahn+nntp@snipabacken.se> - 2015-12-13 15:42 +0000
Re: Ok how do I do this "Bill Cunningham" <nospam@nspam.invalid> - 2015-12-13 11:09 -0500
Re: Ok how do I do this "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-13 12:35 -0800
Re: Ok how do I do this "Bill Cunningham" <nospam@nspam.invalid> - 2015-12-14 12:59 -0500
Re: Ok how do I do this asetofsymbols@gmail.com - 2015-12-13 10:26 -0800
csiph-web