/ Forside / Teknologi / Operativsystemer / Linux / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Linux
#NavnPoint
o.v.n. 11177
peque 7911
dk 4814
e.c 2359
Uranus 1334
emesen 1334
stone47 1307
linuxrules 1214
Octon 1100
10  BjarneD 875
C program returning a value to a DCL symbo~
Fra : Peter


Dato : 17-07-01 09:22

Has anyone any idea how to return a value from a C program and out to
a DCL symbol/variable such as :

$ testprogram :== $testprogram
$ test = 0
$ test = testprogram
$ sh sym test
TEST == "10"
$

where the C program consists of the following :

int main()
{
return 10;
}

Regards Peter

 
 
Jess Bring-Larsen (17-07-2001)
Kommentar
Fra : Jess Bring-Larsen


Dato : 17-07-01 20:38

In article <4dd0684b.0107170022.1f23a604@posting.google.com>, "Peter"
<pjo@pjo.dk> wrote:

Hej

$ testprogram
$ return=$?
$ echo $return

Jess

> Has anyone any idea how to return a value from a C program and out to a
> DCL symbol/variable such as :
>
> $ testprogram :== $testprogram
> $ test = 0
> $ test = testprogram
> $ sh sym test
> TEST == "10"
> $
>
> where the C program consists of the following :
>
> int main()
> {
> return 10;
> }
>
> Regards Peter

Søg
Reklame
Statistik
Spørgsmål : 177557
Tips : 31968
Nyheder : 719565
Indlæg : 6408885
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste