~charles/dotfiles

ref: f3d8c43ffc40a3ddf482a222c3399052aa6b2f4b dotfiles/fastabr/fastabr.h -rw-r--r-- 639 bytes
f3d8c43f — Charles Daniels gr ignore un-readable files 3 years ago
                                                                                
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
#ifndef FASTABR_H
#define FASTABR_H

/* Make glibc on Linux give us the non-broken strsep(). */
#define _BSD_SOURCE /* for glibc < 2.19 */
#define _DEFAULT_SOURCE /* for glibc >= 2.19 */

#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <limits.h>
#include <err.h>
#include <stdio.h>
#include <sys/types.h>
#include <pwd.h>
#include <getopt.h>

#define PATHSEP "/"
#define FASTABR_VERSION "0.0.2"

#ifdef __linux__
#include <linux/limits.h>
#include <bsd/string.h>
#endif

char* fastabr(char* path);
void set_home(char* path);
void display_help(void);
void display_usage(void);
int main(int argc, char** argv);

#endif