public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
From: "Tyler Littlefield" <compgeek13@gmail.com>
To: "Speakup is a screen review system for Linux." <speakup@braille.uwo.ca>
Subject: can someone look at this? sorry if its o-t
Date: Fri, 12 May 2006 11:47:17 -0600	[thread overview]
Message-ID: <002801c675ec$1f8d1870$6501a8c0@grandmasfury> (raw)

Hay list,
I know this is off-topic, but it says fdata is out of scope, can someone look at it and tell me what is going on?
Thanks,
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <syslog.h>
#include <cstdlib>
#include <iostream>
struct data{
int alt;
char *data;
char *usern;
};
using namespace std;
int main()
{
openlog("Dataplus client", LOG_PID, 0);
 switch ( fork() ) {
case -1:
syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), "There was an error starting the dataplus client.");
return 1;
case 0:
break;
return 0;
}
if ( setsid() < 0 )
{
syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), "There was an error starting the dataplus client.");
return 2;
}
syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_NOTICE), "Dataplus client ready.");
data usr;
usr.alt=322;
usr.data="linux";
usr.usern="tyler/root";
dfile=fopen("darg", "w");
int i;
for (i = 0; i++; i < 12)
{
printf(dfile, usr);
fflush(dfile);
}
fclose(dfile);
return 0;
}

             reply	other threads:[~ UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
 Tyler Littlefield [this message]
 ` Gregory Nowak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='002801c675ec$1f8d1870$6501a8c0@grandmasfury' \
    --to=compgeek13@gmail.com \
    --cc=speakup@braille.uwo.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).