~ubuntu-branches/ubuntu/feisty/renameutils/feisty

1 by Francois Marier
* Fixed a typo in the qmv manpage (Closes: #245196)
1
/* tab-utils.h - Utility functions dealing with strings and tabs.
2
 *
3
 * Copyright (C) 2001  Oskar Liljeblad
4
 *
5
 * This file is part of the file renaming utilities (renameutils)
6
 * and regex-markup.
7
 *
8
 * This software is copyrighted work licensed under the terms of the
9
 * GNU General Public License. Please consult the file `COPYING' for
10
 * details.
11
 */
12
13
#ifndef __TAB_UTILS_H__
14
#define __TAB_UTILS_H__
15
16
#include <stdio.h>
17
18
void tab_to(FILE *out, int from, int to, int tabsize);
19
size_t tab_len(const char *string, int tabsize);
20
char tab_char_at(const char *string, int pos, int tabsize);
21
int tab_index(const char *string, int pos, int tabsize);
22
23
extern inline char
24
tab_char_at(const char *string, int pos, int tabsize)
25
{
26
	return string[tab_index(string, pos, tabsize)];
27
}
28
29
#endif