-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy_ls.h
46 lines (39 loc) · 849 Bytes
/
my_ls.h
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
36
37
38
39
40
41
42
43
44
45
46
/*
** my_ls_basique.h for my_ls_basique.h in /home/charra_s/PSU_2014_my_ls
**
** Made by Sofiane Charrad
** Login <[email protected]>
**
** Started on Tue Nov 25 19:05:13 2014 Sofiane Charrad
** Last update Sat Jan 31 01:57:38 2015 Sofiane Charrad
*/
#ifndef __MY_LS_H__
#define __MY_LS_H__
#include <grp.h>
#include <pwd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
typedef int (*ptr_func)();
typedef struct s_ptr
{
char *str;
int i;
ptr_func func;
} t_ptr;
typedef struct s_struct
{
struct dirent *file;
struct stat type;
struct passwd *pass;
struct group *group;
} t_struct;
int my_putchar(char c);
int my_putstr(char *str);
int my_putstr_esp(char *str);
int my_putstr_so(char *str);
#endif /*_MY_LS_H_*/