[Github-comments] [geany/geany] Ctags sync, part 1 (#1160)

Colomban Wendling notifications at xxxxx
Sat Aug 6 00:40:20 UTC 2016


> +
> +/* Return a newly-allocated string whose contents concatenate those of
> + * s1, s2, s3.
> + * Routine adapted from Gnu etags.
> + */
> +static char* concat (const char *s1, const char *s2, const char *s3)
> +{
> +  int len1 = strlen (s1), len2 = strlen (s2), len3 = strlen (s3);
> +  char *result = xMalloc (len1 + len2 + len3 + 1, char);
> +
> +  strcpy (result, s1);
> +  strcpy (result + len1, s2);
> +  strcpy (result + len1 + len2, s3);
> +  result [len1 + len2 + len3] = '\0';
> +
> +  return result;

indentation's wrong (funnily enough, it was correct in the original :wink: )

---
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/pull/1160/files/d440a81166e62d41e2b06d555b471db5fdd8d80d..ea72ecc00fc22f24eced3ffce7c7db67d5f02271#r73776803
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160805/c7f0103e/attachment.html>


More information about the Github-comments mailing list