MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
echo.c
1
/* Copyright (c) 2000, 2007 MySQL AB
2
Use is subject to license terms
3
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; version 2 of the License.
7
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
12
13
You should have received a copy of the GNU General Public License
14
along with this program; if not, write to the Free Software
15
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
16
17
/*
18
echo is a replacement for the "echo" command builtin to cmd.exe
19
on Windows, to get a Unix eqvivalent behaviour when running commands
20
like:
21
$> echo "hello" | mysql
22
23
The windows "echo" would have sent "hello" to mysql while
24
Unix echo will send hello without the enclosing hyphens
25
26
This is a very advanced high tech program so take care when
27
you change it and remember to valgrind it before production
28
use.
29
30
*/
31
32
#include <stdio.h>
33
34
int
main(
int
argc,
char
**argv)
35
{
36
int
i
;
37
for
(i= 1; i < argc; i++)
38
{
39
fprintf(stdout,
"%s"
, argv[i]);
40
if
(i < argc - 1)
41
fprintf(stdout,
" "
);
42
}
43
fprintf(stdout,
"\n"
);
44
return
0;
45
}
client
echo.c
Generated on Sat Nov 9 2013 01:24:34 for MySQL 5.6.14 Source Code Document by
1.8.1.2