It seems like the obvious solution would have been to treat a NULL string or file pointer as meaning "just return the number of characters in the result". Oh well. -Barry Shein