aboutsummaryrefslogblamecommitdiffstats
path: root/src/support.h
blob: 16dd7ae13c96d5b782ec87b1abc5b7097e5203ec (plain) (tree)
1
2
3
4
5
6
7
8
9

                 
 

                 

                    

      
                                                                 
 
                
                     
                                                    



                                                                           
      
#ifndef SUPPORT_H
#define SUPPORT_H

#include <glib.h>

#ifdef HAVE_LIBGEN_H
#include <libgen.h>
#endif

const char *strcasestr(const char *haystack, const char *needle);

typedef struct {
	gsize offset;
	GTime t; /* GTime is equivalent to time_t */
} scroll_state_t;

char *strscroll(char *str, char *separator, int width, scroll_state_t *st);

#endif