1 /*************************************************************************
3 * $Id: doc_static.h,v 1.1 2001/12/27 17:29:20 breese Exp $
5 * Copyright (C) 2001 Bjorn Reese and Daniel Stenberg.
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
11 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
12 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
13 * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE AUTHORS AND
14 * CONTRIBUTORS ACCEPT NO RESPONSIBILITY IN ANY CONCEIVABLE MANNER.
16 ************************************************************************/
18 /** @addtogroup StaticStrings Static String Functions.
19 Replacements for the standard C string functions.
31 This package renames, fixes, and extends the standard C string handling
36 Renaming is done to provide more clear names, to provide a consistant naming
37 and argument policy, and to hide portability issues.
39 @li All functions starts with "trio_".
40 @li Target is always the first argument, if present, except where the target
41 is optional, such as @ref trio_to_double.
42 @li Functions requiring a size for target includes "_max" in its name, and
43 the size is always the second argument.
44 @li Functions performing case-sensitive operations includes "_case" in its
49 Fixing is done to avoid subtle error conditions.
50 For example, @c strncpy does not terminate the result with a zero if the
51 source string is bigger than the maximal length, so technically the result
52 is not a C string anymore. @ref trio_copy_max makes sure that the result
57 Extending is done to provide a richer set of fundamental functions.
58 This includes functionality such as wildcard matching ( @c trio_match )
59 and calculation of hash values ( @c trio_hash ).