string.c revision 49dbdb0186eb23d87d685b96eaefa9ec3c71d9b8
/*
* Copyright (C) 1996-2000 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*/
/* $Id: string.c,v 1.7 2000/06/21 22:01:25 tale Exp $ */
/* Principal Author: Ted Lemon */
#include <config.h>
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
}
void
*r = h;
h->refcnt++;
}
void
if (--((*h)->refcnt) <= 0)
isc_mem_put(omapi_mctx, *h,
OMAPI_STRING_EMPTY_SIZE + (*h)->len);
*h = NULL;
}
void
}
int
unsigned int len;
int order;
else
if (order == 0) {
order = 1;
order = -1;
}
return (order);
}
int
int order;
else
if (order == 0) {
order = 1;
order= -1;
}
return (order);
}