![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Question for calling oracle function from perl | ili | Shell Programming and Scripting | 0 | 03-29-2008 09:51 PM |
| Calling a C-function froma shell script | jisha | Shell Programming and Scripting | 3 | 01-28-2008 03:08 AM |
| calling one function from another shell script | trichyselva | UNIX for Dummies Questions & Answers | 1 | 01-17-2008 12:28 AM |
| urgent calling function from a script | jisha | Shell Programming and Scripting | 2 | 01-09-2008 02:40 PM |
| calling c++ function from script | Lebamb | High Level Programming | 3 | 06-24-2003 09:53 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
ya sure ..a very simple example
my sample.c file is given below: # include <stdio.h> void pline(void); main(int argc,char *argv[]) { int i,j; printf("Wow Entered main\n"); i=strcmp(argv[0],"pline"); /*just to test*/ j=strcmp(argv[1],"pline"); /*just to test*/ printf("i=%d \n j=%d\n",i,j); if(strcmp(argv[1],"pline") == 0) { pline(); printf("done\n"); } } void pline(void) { int i; for(i=1;i<5;i++) printf("Test \n"); printf("\n"); } No call the function from a 1.pl file .. this is my requirement i guess we need to get the executable of sample.c after compiling. this too is done and executable is generated. Thanks |
|
||||
|
This is the link where i have posted a solution for the shell script
Calling a C-function froma shell script |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|