2 * Definitions for utilities to convert various other types to strings.
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 #ifndef __TO_STR_INT_H__
26 #define __TO_STR_INT_H__
30 char *word_to_hex(char *out
, guint16 word
);
31 char *word_to_hex_npad(char *out
, guint16 word
);
32 char *dword_to_hex_punct(char *out
, guint32 dword
, char punct
);
33 char *dword_to_hex(char *out
, guint32 dword
);
34 char *bytes_to_hexstr(char *out
, const guint8
*ad
, guint32 len
);
35 char *bytes_to_hexstr_punct(char *out
, const guint8
*ad
, guint32 len
, char punct
);
37 char *oct_to_str_back(char *ptr
, guint32 value
);
38 char *hex_to_str_back(char *ptr
, int pad
, guint32 value
);
39 char *uint_to_str_back(char *ptr
, guint32 value
);
40 char *int_to_str_back(char *ptr
, gint32 value
);
42 #endif /* __TO_STR_INT_H__ */