source: cacamoo/trunk/src/cacamoo.h @ 1246

Last change on this file since 1246 was 1246, checked in by Jean-Yves Lamoureux, 14 years ago
  • Added --list-files option, unicode option (not working yet)
  • Property svn:keywords set to Id
File size: 1.0 KB
Line 
1/*
2 *  cacamoo
3 *  Copyright (c) 2006 Jean-Yves Lamoureux <jylam@lnxscene.org>
4 *                All Rights Reserved
5 *
6 *  $Id: cacamoo.h 1246 2006-10-27 19:30:36Z jylam $
7 *
8 *  This program is free software; you can redistribute it and/or
9 *  modify it under the terms of the Do What The Fuck You Want To
10 *  Public License, Version 2, as published by Sam Hocevar. See
11 *  http://sam.zoy.org/wtfpl/COPYING for more details.
12 */
13
14#ifndef _CACASAY_H_
15#define _CACASAY_H_
16
17#include <stdio.h>
18#include <string.h>
19#include <stdlib.h>
20/* Portability ? */
21#include <sys/types.h>
22#include <dirent.h>
23
24
25#include <cucul.h>
26
27static void version(void);
28char *construct_balloon(char *buffer, unsigned int termwidth);
29char *wrap_string(char *buffer, unsigned int width, unsigned int *max_width, int no_wrap);
30char *make_caca_from_file(unsigned int *size);
31char *replace(char *string, char *oldpiece, const char *newpiece);
32char *remove_slashes(char *str);
33char *remove_comments(char *str);
34void list_files(const char *directory);
35
36#if defined(HAVE_GETOPT_H)
37static void usage(void);
38#endif
39
40#endif /* _CACASAY_H_ */
Note: See TracBrowser for help on using the repository browser.