File: tools.h

package info (click to toggle)
irmp3 0.4.3pre6-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 584 kB
  • ctags: 374
  • sloc: ansic: 3,955; makefile: 212; pascal: 39
file content (35 lines) | stat: -rw-r--r-- 834 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*************************************************************************
 * $Id: tools.h,v 1.3 2000/02/07 18:50:40 dpotter Exp $
 *
 * tools.h -- Some helpful functions
 *
 * Copyright (C) by Andreas Neuhaus <andy@fasta.fh-dortmund.de>
 *
 */

#ifndef __TOOLS_H__
#define __TOOLS_H__


/*************************************************************************
 * MACRO FUNCTIONS
 */
#define MAX(a,b) (((a)>(b))?(a):(b))
#define MIN(a,b) (((a)<(b))?(a):(b))


/*************************************************************************
 * FUNCTIONS
 */
int readline (int fd, char *buf, int count);
int sendtext (int fd, char *text, ...);
char *trimleft (char *str);
char *trimright (char *str);
char *trim (char *str);


#endif /* __TOOLS_H__ */

/*************************************************************************
 * EOF
 */