/*
- * "$Id: strings2po.c 6921 2007-09-06 13:38:37Z mike $"
- *
* Convert Apple .strings file (UTF-16 BE text file) to GNU gettext .po files.
*
+ * Copyright 2007-2014 by Apple Inc.
+ *
+ * These coded instructions, statements, and computer programs are the
+ * property of Apple Inc. and are protected by Federal copyright
+ * law. Distribution and use rights are outlined in the file "LICENSE.txt"
+ * which should have been included with this file. If this file is
+ * file is missing or damaged, see the license at "http://www.cups.org/".
+ *
* Usage:
*
* strings2po filename.strings filename.po
* Compile with:
*
* gcc -o strings2po strings2po.c
- *
- * Contents:
- *
- * main() - Convert .strings file to .po.
- * read_strings() - Read a line from a .strings file.
- * write_po() - Write a line to the .po file.
*/
#include <stdio.h>
char *bufptr; /* Pointer into buffer */
- while (fgets(buffer, bufsize, strings))
+ while (fgets(buffer, (int)bufsize, strings))
{
if (buffer[0] != '\"')
continue;
if (*bufptr != '\"')
continue;
- *bufptr++ = '\0';
+ *bufptr = '\0';
return (1);
}
{
fprintf(po, "%s \"%s\"\n", what, s);
}
-
-
-/*
- * End of "$Id: strings2po.c 6921 2007-09-06 13:38:37Z mike $".
- */