Back to index

texmacs  1.0.7.15
qt_sys_utils.hpp
Go to the documentation of this file.
00001 
00002 /******************************************************************************
00003 * MODULE     : qt_sys_utils.hpp
00004 * DESCRIPTION: external command handling
00005 * COPYRIGHT  : (C) 2009  David MICHEL
00006 *******************************************************************************
00007 * This software falls under the GNU general public license version 3 or later.
00008 * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
00009 * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
00010 ******************************************************************************/
00011 
00012 #ifndef QT_SYS_UTILS_H
00013 #define QT_SYS_UTILS_H
00014 
00015 #include "string.hpp"
00016 
00017 /* exitcode= qt_system (command, result);
00018  *
00019  * Execute /command/ in the local command interpreter. Return all
00020  * data sent to stdout-stderr in /result/. We get the exit code of
00021  * the command in /exitcode/.
00022  */
00023 int qt_system (string);
00024 int qt_system (string, string&);
00025 
00026 #endif // defined QT_SYS_UTILS_H
00027