![]() |
|
|
google unix.com
|
|||||||
| Forum | Registrati | Regole Forum | Collegamenti | Album | FAQ | Members List | Calendario | Ricerca | Today's Posts | Mark Forums Read |
| 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 |
|
|
LinkBack | Thread Tools | Cerca in questo Thread | Rate Thread | Modalità di visualizzazione |
|
||||
|
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? 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 |
| Modalità di visualizzazione | Vota questo thread |
|
|