> Do you need to know the size of the clipboard file before > calling that ? You mean char *scrap_rtxt(char *buf, long *len, long maxlen)? maxlen is the len form the buf. In len it will return the number of bytes which are in the buf. Gerhard