view osdep/ftello.c @ 21988:dbdd1a73c7f7

Quote some expressions, might help with some shells. patch Derek E. Lewis, dlewis solnetworks net
author diego
date Wed, 24 Jan 2007 18:10:40 +0000 (2007-01-24)
parents e268886eb13d
children
line wrap: on
line source
/*
 * ftello.c
 *	  64-bit version of ftello() for systems which do not have it
 */

#include "config.h"

#include <stdio.h>
#include <sys/types.h>

off_t
ftello(FILE *stream)
{
	fpos_t floc;

	if (fgetpos(stream, &floc) != 0)
		return -1;
	return floc;
}