~ubuntu-branches/ubuntu/hardy/gnomad2/hardy

« back to all changes in this revision

Viewing changes to src/util.h

  • Committer: Bazaar Package Importer
  • Author(s): Shaun Jackman
  • Date: 2004-10-25 10:24:21 UTC
  • Revision ID: james.westby@ubuntu.com-20041025102421-hnnl6uzlkutcibvi
Tags: upstream-2.5.0
ImportĀ upstreamĀ versionĀ 2.5.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* util.h
 
2
   General utility functions, eg for string formatting
 
3
   header definitions.
 
4
   Copyright (C) 2001 Linus Walleij
 
5
 
 
6
This file is part of the GNOMAD package.
 
7
 
 
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)
 
11
any later version.
 
12
 
 
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. 
 
17
 
 
18
*/
 
19
 
 
20
#ifndef UTILH_INCLUDED
 
21
#define UTILH_INCLUDED 1
 
22
 
 
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);
 
35
 
 
36
#endif