Home
last modified time | relevance | path

Searched hist:"302318 d549dbac9e4803c93259cc1e590776774c" (Results 1 – 1 of 1) sorted by relevance

/freebsd/lib/libc/stdlib/
H A Dqsort.3diff 302318d549dbac9e4803c93259cc1e590776774c Wed Feb 20 19:31:55 CET 2013 Giorgos Keramidas <keramida@FreeBSD.org> Various improvements to the qsort(3) usage example:

- Remove unused #include.
- Do not cast away const.
- Use the canonical idiom to compare two numbers.
- Use proper type for sizes, i.e. size_t instead of int.
- Correct indentation.
- Simplify printf("\n") to puts("").
- Use return instead of exit() in main().

Submitted by: Christoph Mallon, christoph.mallon at gmx.de
Approved by: gjb (mentor)
Reviewed by: stefanf
MFC after: 1 week