diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-11 12:10:07 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-11 12:27:47 +0100 |
commit | 7852af7c93140a5d78cf35414d4ae5b42bca187a (patch) | |
tree | 48e6413cb5f83fca6618bd51c4499bd41cb552a0 /src/pattern.h | |
parent | whitespace (diff) | |
download | scrotty-7852af7c93140a5d78cf35414d4ae5b42bca187a.tar.gz scrotty-7852af7c93140a5d78cf35414d4ae5b42bca187a.tar.bz2 scrotty-7852af7c93140a5d78cf35414d4ae5b42bca187a.tar.xz |
m + split out save_fbs to main + do not use PATH_MAX + do not use alloca
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r-- | src/pattern.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/pattern.h b/src/pattern.h index 98bc7a3..a3eef59 100644 --- a/src/pattern.h +++ b/src/pattern.h @@ -25,16 +25,14 @@ * If `path != NULL` than all non-escaped spaces in * `pattern` will be stored as 255-bytes in `buf`. * - * @param buf The output buffer. - * @param n The size of `buf`. * @param pattern The pattern to evaluate. * @param fbno The index of the framebuffer. * @param width The width of the image/framebuffer. * @param height The height of the image/framebuffer. * @param path The filename of the saved image, `NULL` * during the evaluation of the filename pattern. - * @return Zero on success, -1 on error. + * @return The constructed string, `NULL` on error. */ -int evaluate (char *restrict buf, size_t n, const char *restrict pattern, - int fbno, long width, long height, const char *restrict path); +char *evaluate (const char *restrict pattern, int fbno, long width, + long height, const char *restrict path); |