home *** CD-ROM | disk | FTP | other *** search
- #include <utility/TagItem.h>
- #include <dos/dos.h>
- #include <exec/libraries.h>
-
- #include <proto/dos.h>
-
- static struct TagItem _systemlist[]={ { TAG_END,0 } }; /* No Tags */
-
- int system(const char *string)
- {
- if(string==NULL){
- return 1;
- }else{
- if(((struct Library *)DOSBase)->lib_Version>=36)
- return SystemTagList((STRPTR)string,_systemlist);
- else
- return(Execute((STRPTR)string,0L,0L));
- }
- }
-