/usr/include/sdrstring.h is in libion-dev 3.2.1+dfsg-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | /*
sdrstring.h: definitions supporting use of SDR self-
delimited strings.
Author: Scott Burleigh, JPL
Modification History:
Date Who What
06-05-07 SCB Initial abstraction from original SDR API.
Copyright (c) 2001-2007 California Institute of Technology.
ALL RIGHTS RESERVED. U.S. Government Sponsorship
acknowledged.
*/
#ifndef _SDRSTRING_H_
#define _SDRSTRING_H_
#include "sdrmgt.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Functions for operating on self-delimited strings in SDR. */
#define MAX_SDRSTRING (255)
#define SDRSTRING_BUFSZ (MAX_SDRSTRING + 1)
#define sdr_string_create(sdr, from) \
Sdr_string_create(__FILE__, __LINE__, sdr, from)
#define sdr_string_dup(sdr, from) \
Sdr_string_dup(__FILE__, __LINE__, sdr, from)
extern Object Sdr_string_create(char *file, int line,
Sdr sdr, char *from);
/* strlen of buffer must not exceed 255;
if it does, or if insufficient SDR
space is available, 0 is returned.
Else returns address of newly created
SDR string object. To destroy, just
use sdr_free(). */
extern Object Sdr_string_dup(char *file, int line,
Sdr sdr, Object from);
/* If insufficient SDR space is available,
0 is returned. Else returns address
of newly created copy of original
SDR string object. To destroy, just
use sdr_free(). */
extern int sdr_string_length(Sdr sdr, Object string);
/* Returns length of indicated SDR string
object (strlen), or -1 on any error. */
extern int sdr_string_read(Sdr sdr, char *into, Object string);
/* Buffer must be SDRSTRING_BUFSZ bytes
in length to allow for the maximum
possible SDR string. Returns length
of string (strlen), or -1 on any error. */
#ifdef __cplusplus
}
#endif
#endif /* _SDRSTRING_H_ */
|