🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #56481

Re: [slrn] howto update counter in hook?

#56481
From: John E. Davis
Date: Thu, 06 Jan 2000 00:00
41 lines
1938 bytes
On 6 Jan 2000 23:19:50 GMT, Rejo Zenger <rejo.f0001nim@sisterray.xs4all.nl>
wrote:
>I'm trying to have an address in my header that is uniq at every post
>that i do. I thunk i can get this by having sa number in file that gets
>increased every time i do a post. The number is inserted in my address i

What about using the current time?

>     variable file_open = fopen (cache_file, "r");
>     variable x;
>     variable y = expr x + 1;

At this point, x has no value and the statement involving y is
syntactically incorrect.

>     while (-1 != fgets (&x, file_open))
>       {

    Perhaps you want:

      y = integer (x) + 1;

>          variable a;
>  	  a = Default_username;
>          a = sprintf ("rejo.f"+y, a);

    Do you mean:
    
           a = sprintf ("rejo.f%d%s", y, a);

>Someone know what i should do now?

I think that you should read the slang user's guide and study the
intrinsic function reference.  You are missing some basic concepts.
See http://space.mit.edu/%7Edavis/slang1.4-doc.html for more
information.

Good luck,
--John

Technical Details
Message-ID: <slrn87aa5f.nas.davis@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn87a8om.16h.rejo.f0001nim@sisterray.xs4all.nl>

Show Full Headers
Complete Article Headers
Message-ID: <slrn87aa5f.nas.davis@aluche.mit.edu>
Subject: Re: [slrn] howto update counter in hook?
Date: Thu, 06 Jan 2000 00:00:00 +0000
From: davis@space.mit.edu (John E. Davis)
References: <slrn87a8om.16h.rejo.f0001nim@sisterray.xs4all.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 569314639
X-Complaints-To: usenet@micro-heart-of-gold.mit.edu
X-Trace: micro-heart-of-gold.mit.edu 947202228 29840 18.75.2.45 (6 Jan 2000 23:43:48 GMT)
Organization: Center for Space Research
User-Agent: slrn/0.9.6.2 (Linux)
Reply-To: davis@space.mit.edu
NNTP-Posting-Date: 6 Jan 2000 23:43:48 GMT
Newsgroups: news.software.readers