All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
util.h File Reference
#include <stdio.h>
#include <stdint.h>
#include <limits.h>

Go to the source code of this file.

#define UTIL_MAX_PATH   PATH_MAX
 
bool clipboard_set_text (char *text)
 
bool clipboard_get_text (char *text, size_t text_sz)
 
bool sys_is_admin (bool *isadmin)
 
bool sys_runas_admin (char *path)
 
bool sys_self_exe (char *path, size_t pathsz)
 
bool sys_self_elevate (void)
 
bool sys_perm_grant (char *path)
 
FILE * sys_fopen_force (char *path, char *mode)
 
bool sys_appdata_path (char *path, size_t pathsz)
 
uint64_t sys_monotime (void)
 
char * util_strsep (char **pinputstr, const char *delim)
 
size_t util_strlncat (char *dst, const char *src, size_t dst_size, size_t nchars)
 
size_t util_strlcpy (char *dst, const char *src, size_t dst_size)
 
size_t util_strlcat (char *dst, const char *src, size_t dst_size)
 
void util_strrep (char *out, size_t outsz, char *in, char *findstr, char *replacestr)
 
void util_chomp (char *str)
 
bool reg_read_key (char *key, char *val, void *buf, size_t buflen)
 
void util_cp1252_to_utf8 (char *utf8, ssize_t utf8_sz, char *cp1252)
 

Detailed Description

Utilities

Author
Mitja Horvat pinkf.nosp@m.luid.nosp@m.@gmai.nosp@m.l.co.nosp@m.m