source:
branches/v4/platforms/caba-ring-ccxcachev4_memcachev4-mips32el/soft/sort/sort_str.c
@
412
Last change on this file since 412 was 134, checked in by , 14 years ago | |
---|---|
File size: 233 bytes |
Line | |
---|---|
1 | #include "sort.h" |
2 | #include "stdio.h" |
3 | |
4 | static const char * sort_type_str [] = |
5 | { |
6 | "insertion sort", |
7 | "selection sort", |
8 | "bubble sort", |
9 | "shell sort" |
10 | }; |
11 | |
12 | const char * sort_str (sort_t x) |
13 | { |
14 | return sort_type_str[x]; |
15 | } |
16 |
Note: See TracBrowser
for help on using the repository browser.