File: dstr.h

package info (click to toggle)
msort 8.53-2.2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,360 kB
  • sloc: sh: 10,138; ansic: 10,031; makefile: 51
file content (16 lines) | stat: -rw-r--r-- 538 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Structure for dynamic wide strings */

struct dstr {
  wchar_t *s;		/* The text itself */
  size_t   c;		/* The number of characters for which storage is available */
  size_t   l;		/* The number of characters in the current string */
};

#ifndef DSTR
extern int FillDynamicString(struct dstr *, wchar_t *);
extern void FreeDynamicString (struct dstr *);
extern void InitializeDynamicString (struct dstr *);
extern struct dstr *MakeDynamicString (wchar_t *);
extern  void AppendToDyanmicString (struct dstr *,const wchar_t *);
#endif