| 21 |
#include <unistd.h> |
#include <unistd.h> |
| 22 |
#include <errno.h> |
#include <errno.h> |
| 23 |
|
|
| 24 |
#define STR_OUT_BUF_SIZE 1024 |
#define STR_OUT_BUF_SIZE 256 |
| 25 |
|
|
| 26 |
const char *str_in[] = { |
const char *str_in[] = { |
| 27 |
"[left]ABCD[right]EFG", |
"[left]ABCD[right]EFG", |
| 36 |
"[lef]A[rightBCD[right]EF[left[left[]G[left", |
"[lef]A[rightBCD[right]EF[left[left[]G[left", |
| 37 |
"A[ color BCD]EF[/color]G[color black]0[/color][color magenta]1[color cyan]23[/color]4[color red]5[/color]6[color yellOw]7[/color]8[color green]9[color blue]0[/color]", |
"A[ color BCD]EF[/color]G[color black]0[/color][color magenta]1[color cyan]23[/color]4[color red]5[/color]6[color yellOw]7[/color]8[color green]9[color blue]0[/color]", |
| 38 |
"A[quote]B[quote]C[quote]D[quote]E[/quote]F[/quote]G[/quote]0[/quote]1[/quote]2[quote]3[/quote]4[/quote]56789", |
"A[quote]B[quote]C[quote]D[quote]E[/quote]F[/quote]G[/quote]0[/quote]1[/quote]2[quote]3[/quote]4[/quote]56789", |
| 39 |
": ABCDE[quote]FG\r\nab[/quote]cd[quote]ef[quote]g\r\n: : 012[/quote]345[/quote]6789\nABC[quote]DEFG" |
": ABCDE[quote]FG\r\nab[/quote]cd[quote]ef[quote]g\r\n: : 012[/quote]345[/quote]6789\nABC[quote]DEFG", |
| 40 |
|
"[35mabc[m", |
| 41 |
|
"123456", |
| 42 |
}; |
}; |
| 43 |
|
|
| 44 |
int str_cnt = 13; |
int str_cnt = 15; |
| 45 |
|
|
| 46 |
int main(int argc, char *argv[]) |
int main(int argc, char *argv[]) |
| 47 |
{ |
{ |