Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4fae1e8f
Commit
4fae1e8f
authored
Jan 27, 2004
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Jan 27, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reformat and cleanup the shrink.c file included in the documentation
for consistency with the Wine source.
parent
ceecf123
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
implementation.sgml
documentation/implementation.sgml
+8
-14
No files found.
documentation/implementation.sgml
View file @
4fae1e8f
...
...
@@ -403,31 +403,25 @@ wait: ff
#include <stdio.h>
#include <string.h>
void
main (void)
int main (void)
{
char buff[256], lastline[256];
int count;
count = 0;
lastline[0] = 0;
char buff[256], lastline[256] = "";
int count = 0;
while (!feof (stdin))
{
fgets (buff, sizeof (buff), stdin);
if (strcmp (buff, lastline) == 0)
{
count++;
}
else
if (strcmp (buff, lastline))
{
if (count > 1)
fprintf (stdout,
"# Last line repeated %i times #\n", count);
fprintf (stdout,
"%s", buff);
printf (
"# Last line repeated %i times #\n", count);
printf (
"%s", buff);
strcpy (lastline, buff);
count = 1;
}
else count++;
}
return 0;
}
</programlisting>
</para>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment