[Github-comments] [geany/geany] [Feature request] Support different combinations of I/O in Custom Commands (#1037)

Andy Alt notifications at xxxxx
Thu Oct 20 19:49:28 UTC 2016


I wanted to highlight a selection, and have it capitalize the first letter of each word. I tried doing this through Custom Commands. I wrote this
```
#include <stdio.h>
#include <string.h>
#include <ctype.h>

int main(int argc, char **argv)
{
  char word[256];

  int i;
  for (i = 1; i < argc; i++)
  {
    strcpy (word, argv[i]);
    word[0] = toupper (argv[i][0]);
    fprintf (stdout, "%s ", word);
  }

  return 0;
}
```
hoping the output would appear in place of the selection. It did not. Am I misunderstanding something?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1037#issuecomment-255209310
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20161020/100aa52b/attachment.html>


More information about the Github-comments mailing list