Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
300 B

  1. #include "stralloc.h"
  2. #include "buffer.h"
  3. static int dummyreadwrite(int fd,char* buf,unsigned long int len) {
  4. (void)fd;
  5. (void)buf;
  6. (void)len;
  7. return 0;
  8. }
  9. void buffer_fromsa(buffer* b,stralloc* sa) {
  10. b->x=sa->s;
  11. b->p=0;
  12. b->n=sa->len;
  13. b->a=sa->a;
  14. b->fd=0;
  15. b->op=dummyreadwrite;
  16. }