Last change
on this file since 0580615 was 0580615, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Point of no return.
|
-
Property mode
set to
100644
|
File size:
590 bytes
|
Rev | Line | |
---|
[f40a309] | 1 | /*
|
---|
| 2 | ============================================================================
|
---|
| 3 | putl.c -- put a Motorola 68000 long word onto a stream file
|
---|
| 4 | Version 2 -- 1987-10-15 -- D.N. Lynx Crowe
|
---|
| 5 |
|
---|
| 6 | WARNING: This fails if the stream is ASCII.
|
---|
| 7 | ============================================================================
|
---|
| 8 | */
|
---|
| 9 |
|
---|
| 10 | #include "stdio.h"
|
---|
| 11 | #include "stddefs.h"
|
---|
| 12 |
|
---|
[0580615] | 13 | void putl(long w, FILE *stream)
|
---|
[f40a309] | 14 | {
|
---|
| 15 | if (putc(((w >> 24) & 0xFF), stream) < 0 )
|
---|
| 16 | return;
|
---|
| 17 |
|
---|
| 18 | if (putc(((w >> 16) & 0xFF), stream) < 0 )
|
---|
| 19 | return;
|
---|
| 20 |
|
---|
| 21 | if (putc(((w >> 8) & 0xFF), stream) < 0 )
|
---|
| 22 | return;
|
---|
| 23 |
|
---|
| 24 | putc((w & 0xFF), stream);
|
---|
| 25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.