The UNIX and Linux Forums  

Go Back   UNIX e Linux Forum > Inizio Forum > Di programmazione ad alto livello
.
google unix.com



Di programmazione ad alto livello Pubblica domande su C, C + +, Java, SQL, e di altri linguaggi di programmazione qui.

Più di UNIX e Linux Forum Argomenti potreste trovare utili
Filo Thread Starter Forum Risposte Ultimo Post
Chiamare le funzioni di shell da un altro script di shell jisha Shell scripting e di programmazione 6 04-05-2008 05:29 PM
Come passare due o più parametri principali in script di shell Pinky UNIX for Dummies Domande & Risposte 0 10-12-2007 12:54 PM
chiamando un prg da shell! andy2000 Shell scripting e di programmazione 4 03-31-2007 05:02 AM
Chiamata pedice arresta il sonno, ma il principale script doublejz Shell scripting e di programmazione 1 09-12-2005 03:08 PM
c + + chiama main () funzione norsk hedensk Di programmazione ad alto livello 3 01-22-2003 08:28 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Cerca in questo Thread Rate Thread Modalità di visualizzazione
  #1 (permalink)  
Old 09-25-2006
passera flounder is offline
Utente Registrato
  
 

Iscriviti Data: giugno 2002
Ubicazione: PA
Interventi: 17
Restituire il valore (int) a chiamare dai principali della shell

Qual è il sytax al ritorno da un int C programma principale torna alla chiamata della shell?
Codice:
#!/usr/bin/ksh 

typeset -i NO_RECS

$NO_RECS=process_file

# Process file is a C program that is set up to return an int from main. The
#program complies with no issues, but an error is generated when the shell
#calls the program. Is the syntax correct to return the int value to a shell
#variable?
Ecco il programma in C:
Codice:
int main(argc,argv)
{

int no_recs_tot ;

/* This is just a function within the c program that returns the int value */

no_recs_tot = bld_detail(v_out_path,v_in_path,inrec_cnt,v_src_data_dt);
 
return (no_recs_tot);

} /* End main */

Ultimo a cura di blowtorch; al 09/25/2006 11:09 PM.. Motivo: aggiungere il codice tag
 

Segnalibri

Thread Tools Cerca in questo Thread
Cerca in questo Thread:

Ricerca Avanzata
Modalità di visualizzazione Vota questo thread
Vota questo thread:

Distacco regolamento
Tu non può post nuovo thread
Tu non può inviare una risposta
Tu non può postare allegati
Tu non può modificare i tuoi post

BB codice è Su
Smilies sono Su
[IMG] codice Su
Codice HTML è Chiuso
Trackbacks sono Su
Pingbacks sono Su
Refbacks sono Su




Tutti gli orari sono GMT -4. La data di oggi è 12:25 PM.


Powered by: vBulletin, Copyright © 2000 - 2006, Jelsoft Enterprises Limited. Traduzioni Powered by .
vBCredits v1.4 Copyright © 2007 - 2008, PixelFX Studios
UNIX e Linux Forum Content Copyright © 1993-2009. Tutti i diritti Reserved.Ad di gestione da RedTyger

Contenuti pertinenti URL da vBSEO 3.2.0