cfg_util.h File Reference

#include <ints.h>
#include <cfgdef.h>
#include <stdio.h>
#include <string.h>

Go to the source code of this file.

Defines

#define CFG_UTIL   $_SUCCESS 1
 Copyright (c) 1997.
#define CFG_UTIL   $_STRING_MAX 512
 Copyright (c) 1997.
#define CFG_UTIL   $_UPCASE 0x01
 Copyright (c) 1997.
#define CFG_UTIL   $_STRIP_LEAD_WHITESPACE 0x02
 Copyright (c) 1997.
#define CFG_UTIL   $_STRIP_TRAIL_SPACES 0x04
 Copyright (c) 1997.
#define CFG_UTIL   $_STRIP_QUOTES 0x08
 Copyright (c) 1997.
#define CFG_UTIL   $_COMPRESS_SPACES 0x10
 Copyright (c) 1997.
#define CFG_UTIL   $_COMPRESS_TABS 0x20
 Copyright (c) 1997.
#define CFG_UTIL   $_STRIP_COMMENTS 0x40
 Copyright (c) 1997.
#define CFG_UTIL   $_STRIP_SEMI_COMMENTS 0x80
 Copyright (c) 1997.
#define CFG_UTIL   $_xTAB 0x09
 Copyright (c) 1997.
#define CFG_UTIL   $_xDELETE 0x7F
 Copyright (c) 1997.
#define CFG_UTIL   $_NO_FLAGS 0
 Copyright (c) 1997.
#define CFG_UTIL   $_RETURN_SEPERATORS 1
 Copyright (c) 1997.
#define _UPCASE(c)
#define _LOWERCASE(c)

Functions

int cfg_util $edit_string (char *new_string, char *old_string, int max_destination, int flags)
int cfg_util $tokenize_input (char *input_string, char **tokens, int max_tokens, int *seperators, int flags)
int cfg_util $compare_case_blind (char *str1, char *str2, int max)
int cfg_util $append_decimal_string (char *outstr, int bin)
int cfg_util $append_hex_string (char *outstr, int bin, int min, char pad, int upper)
void cfg_util $out_asciz_string (char *string)
void cfg_util $print_unknown_string (char *message, int length)


Define Documentation

#define _LOWERCASE (  ) 

Value:

(((c) >= 'A' && (c) <= 'Z') \
                                    ? (c) | 0x20 : (c))

Definition at line 68 of file cfg_util.h.

#define _UPCASE (  ) 

Value:

(((c) >= 'a' && (c) <= 'z') \
                                    ? (c) & 0xDF : (c))

Definition at line 65 of file cfg_util.h.

#define CFG_UTIL   $_RETURN_SEPERATORS 1

Copyright (c) 1997.

by DIGITAL Equipment Corporation, Maynard, Mass. All rights reserved. This software is furnished under a license and may be used and copied only in accordance with the terms of such license and with the inclusion of the above copyright notice. This software or any other copies thereof may not be provided or otherwise made available to any other person. No title to and ownership of the software is hereby transferred. The information in this software is subject to change without notice and should not be construed as a commitment by DIGITAL Equipment Corporation. DIGITAL assumes no responsibility for the use or reliability of its software on equipment which is not supplied by DIGITAL.

Definition at line 60 of file cfg_util.h.

#define CFG_UTIL   $_NO_FLAGS 0

Copyright (c) 1997.

by DIGITAL Equipment Corporation, Maynard, Mass. All rights reserved. This software is furnished under a license and may be used and copied only in accordance with the terms of such license and with the inclusion of the above copyright notice. This software or any other copies thereof may not be provided or otherwise made available to any other person. No title to and ownership of the software is hereby transferred. The information in this software is subject to change without notice and should not be construed as a commitment by DIGITAL Equipment Corporation. DIGITAL assumes no responsibility for the use or reliability of its software on equipment which is not supplied by DIGITAL.

Definition at line 60 of file cfg_util.h.

#define CFG_UTIL   $_xDELETE 0x7F

Copyright (c) 1997.

by DIGITAL Equipment Corporation, Maynard, Mass. All rights reserved. This software is furnished under a license and may be used and copied only in accordance with the terms of such license and with the inclusion of the above copyright notice. This software or any other copies thereof may not be provided or otherwise made available to any other person. No title to and ownership of the software is hereby transferred. The information in this software is subject to change without notice and should not be construed as a commitment by DIGITAL Equipment Corporation. DIGITAL assumes no responsibility for the use or reliability of its software on equipment which is not supplied by DIGITAL.

Definition at line 60 of file cfg_util.h.

#define CFG_UTIL   $_xTAB 0x09

Copyright (c) 1997.

by DIGITAL Equipment Corporation, Maynard, Mass. All rights reserved. This software is furnished under a license and may be used and copied only in accordance with the terms of such license and with the inclusion of the above copyright notice. This software or any other copies thereof may not be provided or otherwise made available to any other person. No title to and ownership of the software is hereby transferred. The information in this software is subject to change without notice and should not be construed as a commitment by DIGITAL Equipment Corporation. DIGITAL assumes no responsibility for the use or reliability of its software on equipment which is not supplied by DIGITAL.

Definition at line 60 of file cfg_util.h.

#define CFG_UTIL   $_STRIP_SEMI_COMMENTS 0x80

Copyright (c) 1997.

by DIGITAL Equipment Corporation, Maynard, Mass. All rights reserved. This software is furnished under a license and may be used and copied only in accordance with the terms of such license and with the inclusion of the above copyright notice. This software or any other copies thereof may not be provided or otherwise made available to any other person. No title to and ownership of the software is hereby transferred. The information in this software is subject to change without notice and should not be construed as a commitment by DIGITAL Equipment Corporation. DIGITAL assumes no responsibility for the use or reliability of its software on equipment which is not supplied by DIGITAL.

Definition at line 60 of file cfg_util.h.

#define CFG_UTIL   $_STRIP_COMMENTS 0x40

Copyright (c) 1997.

by DIGITAL Equipment Corporation, Maynard, Mass. All rights reserved. This software is furnished under a license and may be used and copied only in accordance with the terms of such license and with the inclusion of the above copyright notice. This software or any other copies thereof may not be provided or otherwise made available to any other person. No title to and ownership of the software is hereby transferred. The information in this software is subject to change without notice and should not be construed as a commitment by DIGITAL Equipment Corporation. DIGITAL assumes no responsibility for the use or reliability of its software on equipment which is not supplied by DIGITAL.

Definition at line 60 of file cfg_util.h.

#define CFG_UTIL   $_COMPRESS_TABS 0x20

Copyright (c) 1997.

by DIGITAL Equipment Corporation, Maynard, Mass. All rights reserved. This software is furnished under a license and may be used and copied only in accordance with the terms of such license and with the inclusion of the above copyright notice. This software or any other copies thereof may not be provided or otherwise made available to any other person. No title to and ownership of the software is hereby transferred. The information in this software is subject to change without notice and should not be construed as a commitment by DIGITAL Equipment Corporation. DIGITAL assumes no responsibility for the use or reliability of its software on equipment which is not supplied by DIGITAL.

Definition at line 60 of file cfg_util.h.

#define CFG_UTIL   $_COMPRESS_SPACES 0x10

Copyright (c) 1997.

by DIGITAL Equipment Corporation, Maynard, Mass. All rights reserved. This software is furnished under a license and may be used and copied only in accordance with the terms of such license and with the inclusion of the above copyright notice. This software or any other copies thereof may not be provided or otherwise made available to any other person. No title to and ownership of the software is hereby transferred. The information in this software is subject to change without notice and should not be construed as a commitment by DIGITAL Equipment Corporation. DIGITAL assumes no responsibility for the use or reliability of its software on equipment which is not supplied by DIGITAL.

Definition at line 60 of file cfg_util.h.

#define CFG_UTIL   $_STRIP_QUOTES 0x08

Copyright (c) 1997.

by DIGITAL Equipment Corporation, Maynard, Mass. All rights reserved. This software is furnished under a license and may be used and copied only in accordance with the terms of such license and with the inclusion of the above copyright notice. This software or any other copies thereof may not be provided or otherwise made available to any other person. No title to and ownership of the software is hereby transferred. The information in this software is subject to change without notice and should not be construed as a commitment by DIGITAL Equipment Corporation. DIGITAL assumes no responsibility for the use or reliability of its software on equipment which is not supplied by DIGITAL.

Definition at line 60 of file cfg_util.h.

#define CFG_UTIL   $_STRIP_TRAIL_SPACES 0x04

Copyright (c) 1997.

by DIGITAL Equipment Corporation, Maynard, Mass. All rights reserved. This software is furnished under a license and may be used and copied only in accordance with the terms of such license and with the inclusion of the above copyright notice. This software or any other copies thereof may not be provided or otherwise made available to any other person. No title to and ownership of the software is hereby transferred. The information in this software is subject to change without notice and should not be construed as a commitment by DIGITAL Equipment Corporation. DIGITAL assumes no responsibility for the use or reliability of its software on equipment which is not supplied by DIGITAL.

Definition at line 60 of file cfg_util.h.

#define CFG_UTIL   $_STRIP_LEAD_WHITESPACE 0x02

Copyright (c) 1997.

by DIGITAL Equipment Corporation, Maynard, Mass. All rights reserved. This software is furnished under a license and may be used and copied only in accordance with the terms of such license and with the inclusion of the above copyright notice. This software or any other copies thereof may not be provided or otherwise made available to any other person. No title to and ownership of the software is hereby transferred. The information in this software is subject to change without notice and should not be construed as a commitment by DIGITAL Equipment Corporation. DIGITAL assumes no responsibility for the use or reliability of its software on equipment which is not supplied by DIGITAL.

Definition at line 60 of file cfg_util.h.

#define CFG_UTIL   $_UPCASE 0x01

Copyright (c) 1997.

by DIGITAL Equipment Corporation, Maynard, Mass. All rights reserved. This software is furnished under a license and may be used and copied only in accordance with the terms of such license and with the inclusion of the above copyright notice. This software or any other copies thereof may not be provided or otherwise made available to any other person. No title to and ownership of the software is hereby transferred. The information in this software is subject to change without notice and should not be construed as a commitment by DIGITAL Equipment Corporation. DIGITAL assumes no responsibility for the use or reliability of its software on equipment which is not supplied by DIGITAL.

Definition at line 60 of file cfg_util.h.

#define CFG_UTIL   $_STRING_MAX 512

Copyright (c) 1997.

by DIGITAL Equipment Corporation, Maynard, Mass. All rights reserved. This software is furnished under a license and may be used and copied only in accordance with the terms of such license and with the inclusion of the above copyright notice. This software or any other copies thereof may not be provided or otherwise made available to any other person. No title to and ownership of the software is hereby transferred. The information in this software is subject to change without notice and should not be construed as a commitment by DIGITAL Equipment Corporation. DIGITAL assumes no responsibility for the use or reliability of its software on equipment which is not supplied by DIGITAL.

Definition at line 60 of file cfg_util.h.

#define CFG_UTIL   $_SUCCESS 1

Copyright (c) 1997.

by DIGITAL Equipment Corporation, Maynard, Mass. All rights reserved. This software is furnished under a license and may be used and copied only in accordance with the terms of such license and with the inclusion of the above copyright notice. This software or any other copies thereof may not be provided or otherwise made available to any other person. No title to and ownership of the software is hereby transferred. The information in this software is subject to change without notice and should not be construed as a commitment by DIGITAL Equipment Corporation. DIGITAL assumes no responsibility for the use or reliability of its software on equipment which is not supplied by DIGITAL.

Definition at line 60 of file cfg_util.h.


Function Documentation

int cfg_util $append_decimal_string ( char *  outstr,
int  bin 
)

int cfg_util $append_hex_string ( char *  outstr,
int  bin,
int  min,
char  pad,
int  upper 
)

int cfg_util $compare_case_blind ( char *  str1,
char *  str2,
int  max 
)

int cfg_util $edit_string ( char *  new_string,
char *  old_string,
int  max_destination,
int  flags 
)

void cfg_util $out_asciz_string ( char *  string  ) 

void cfg_util $print_unknown_string ( char *  message,
int  length 
)

int cfg_util $tokenize_input ( char *  input_string,
char **  tokens,
int  max_tokens,
int *  seperators,
int  flags 
)


SourceForge.net Logo
Project space on SourceForge.net