Category : Files from Magazines
Archive   : VOL11N15.ZIP
Filename : GETCLIP.C

 
Output of file : GETCLIP.C contained in archive : VOL11N15.ZIP
/* GETCLIP.C -- get text from Windows clipboard */

#include
#include
#include
#include "winclip.h"

void fail(char *s) { puts(s); exit(1); }

int main(void)
{
char *s;

if (! WindowsClipboard())
fail("This program must run in a DOS box "
"under Enhanced mode Windows");

if (s = GetClipString())
{
puts(s);
FreeClipString(s);
}
else
puts("* clipboard empty *");
return 0;
}



  3 Responses to “Category : Files from Magazines
Archive   : VOL11N15.ZIP
Filename : GETCLIP.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/