summary refs log tree commit diff
path: root/manual
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2014-04-12 14:26:29 +1000
committerAllan McRae <allan@archlinux.org>2014-04-12 14:26:29 +1000
commit89e691f2ae498c6d6eac34cccda0bdcaca13717e (patch)
tree6dd1ae8c28414543ae3082b6e248b0b07e0d9e97 /manual
parentfe8d072cb7b7ce37acb2586b3c0269d1c47ecb6d (diff)
downloadglibc-89e691f2ae498c6d6eac34cccda0bdcaca13717e.tar.gz
glibc-89e691f2ae498c6d6eac34cccda0bdcaca13717e.tar.xz
glibc-89e691f2ae498c6d6eac34cccda0bdcaca13717e.zip
Fix qsort argument order in collation example
Diffstat (limited to 'manual')
-rw-r--r--manual/string.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/manual/string.texi b/manual/string.texi
index 4437dddd47..ba5a2c7ba5 100644
--- a/manual/string.texi
+++ b/manual/string.texi
@@ -1572,8 +1572,8 @@ sort_strings_fast (char **array, int nstrings)
     @}
 
   /* @r{Sort @code{temp_array} by comparing transformed strings.} */
-  qsort (temp_array, sizeof (struct sorter),
-         nstrings, compare_elements);
+  qsort (temp_array, nstrings,
+         sizeof (struct sorter), compare_elements);
 
   /* @r{Put the elements back in the permanent array}
      @r{in their sorted order.} */