| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | main.c |
#include
#include "slidwin.h"
#include "repofile.h"
#include "error.h"
int main(void)
{
REPOFILE repofile;
SLIDWIN slidwin;
char buf[500];
size_t valid;
errorDefaults();
errorInit();
if (ALLOK)
{
repofileDefaults(&repofile);
repofileInit(&repofile);
repofileSetFile(&repofile, "temp.txt");
if (ALLOK)
{
slidwinDefaults(&slidwin);
slidwinInit(&slidwin);
if (ALLOK)
{
slidwinSetBuf(&slidwin, buf, sizeof buf);
slidwinSetRepo(&slidwin, repofileGetRepo(&repofile));
do
{
valid = slidwinVal(&slidwin);
printf("bytes is %ld\n", slidwinVal(&slidwin));
printf("first 3 chars is %.3s\n", buf);
slidwinHalfF(&slidwin);
/* slidwinForward(&slidwin, sizeof buf); */
} while (ALLOK && (valid == (sizeof buf)));
}
}
}
errorTerm();
return (0);
}
@EOT:
---
* Origin: X (3:711/934.9) |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.