view src/lib/istream-failure-at.h @ 22638:7d5634889da8

lib: net_ip2addr() - Optimize by allocating destination memory immediately It doesn't really matter if we allocate a few extra bytes.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Sat, 04 Nov 2017 01:42:37 +0200
parents 99827acc1888
children
line wrap: on
line source

#ifndef ISTREAM_FAILURE_AT_H
#define ISTREAM_FAILURE_AT_H

struct istream *
i_stream_create_failure_at(struct istream *input, uoff_t failure_offset,
			   const char *error_string);
struct istream *
i_stream_create_failure_at_eof(struct istream *input, const char *error_string);

#endif