blob: e8cb878458e26b68d191e58e97cbbe68cb5ec11c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
include <imhdr.h>
include <imio.h>
include <plset.h>
# PLF_UPDHDR -- Update the image header.
procedure plf_updhdr (im, status)
pointer im #I image descriptor
int status #O output status
pointer bp
int nchars, flags, sz_buf
int im_pmsvhdr()
begin
status = OK
flags = 0
if (IM_ACMODE(im) == READ_WRITE)
flags = PL_UPDATE
bp = NULL
iferr {
nchars = im_pmsvhdr (im, bp, sz_buf)
call pl_savef (IM_PL(im), IM_HDRFILE(im), Memc[bp], flags)
} then
status = ERR
call mfree (bp, TY_CHAR)
end
|