2
General utility functions, eg for string formatting
4
Copyright (C) 2001 Linus Walleij
6
This file is part of the GNOMAD package.
8
GNOMAD is free software; you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation; either version 2, or (at your option)
13
You should have received a copy of the GNU General Public License
14
along with GNOMAD; see the file COPYING. If not, write to
15
the Free Software Foundation, 59 Temple Place - Suite 330,
16
Boston, MA 02111-1307, USA.
20
#ifndef UTILH_INCLUDED
21
#define UTILH_INCLUDED 1
23
/* Exported functions */
24
gint vectorlength(gchar **vector);
25
gchar *stringcat(gchar *org, gchar *add);
26
void replacechar(gchar *string, gchar find, gchar replace);
27
gchar *replacestring(gchar *string, gchar *find, gchar *replace);
28
gchar *seconds_to_mmss(guint seconds);
29
guint mmss_to_seconds(gchar *mmss);
30
guint string_to_guint(gchar *string);
31
gboolean is_a_number(gchar *string);
32
void add_empty_hbox (GtkWidget *tobox);
33
void create_error_dialog(gchar *errorstring);
34
void hexdump(unsigned char *data, guint len);