All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
util.c File Reference
#include <sys/time.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <errno.h>
#include "util.h"
#include "console.h"
#include "event.h"

Functions

size_t util_strlcpy (char *dst, const char *src, size_t dst_size)
 
size_t util_strlncat (char *dst, const char *src, size_t dst_size, size_t nchars)
 
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)
 
char * util_strsep (char **pinputstr, const char *delim)
 
void util_chomp (char *str)
 
void util_cp1252_to_utf8 (char *utf8, ssize_t utf8_sz, char *cp1252)
 

Detailed Description

Random utilities

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