Mercurial > pidgin
view sounds/au2h.c @ 412:ad08e67ec874
[gaim-migrate @ 422]
A woman went to her doctor for advice. She told him that her husband had
developed a penchant for anal sex, and she was not sure that it was such
a good idea.
The doctor asked, "Do you enjoy it?"
She said that she did.
He asked, "Does it hurt you?"
She said that it didn't.
The doctor then told her, "Well, then, there's no reason that you
shouldn't practice anal sex, if that's what you like, so long as you
take care not to get pregnant."
The woman was mystified. She asked "You can get pregnant from anal sex?"
The doctor replied, "Of course. Where do you think attorneys come from?"
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 16 Jun 2000 09:29:36 +0000 |
parents | bc117fbcf527 |
children | 7ac742be351d |
line wrap: on
line source
#include <stdio.h> #if !(__GLIBC__ < 2) #include <error.h> #endif #include <fcntl.h> #include <unistd.h> #define BUF_SIZE 10 int main(int argc, char *argv[]) { int fd; FILE *f; int res,x; char buf[BUF_SIZE]; fd = open(argv[1], O_RDONLY); if (fd < 0) { perror("open"); exit(1); } f = fopen(argv[2], "w+"); if (!f) { perror("fopen"); exit(1); } argv[1][strlen(argv[1])-3]='\0'; fprintf(f, "static unsigned char %s[] = {\n", argv[1]); read(fd, buf, 8); /* id & offset */ read(fd, buf, 8); /* len & encoding */ read(fd, buf, 8); /* rate & count */ /* no more click :) */ while((res = read(fd, buf, BUF_SIZE)) > 0) { for (x=0;x<res;x++) fprintf(f, "%#x, ", buf[x] & 0xff); fprintf(f, "\n"); } fprintf(f,"};\n"); fclose(f); return 0; }