src/shared/util.h
author Tero Marttila <terom@fixme.fi>
Sat, 10 Apr 2010 22:18:41 +0300
changeset 127 df89d13f2354
parent 4 49362b34116c
permissions -rw-r--r--
invert zl meaning; zl=0 is 100%, zl=+n is zoomed out
#ifndef SHARED_UTIL_H
#define SHARED_UTIL_H

#include <stddef.h>

/**
 * Replace the file extension in the given path buffer with the given extension, which should be of the form ".foo"
 */
int chfext (char *path, size_t len, const char *newext);

/**
 * Copy filesystem path with new file extension
 */
int path_with_fext (const char *path, char *buf, size_t len, const char *newext);


#endif