Browse Source

add missing doc

Chris Cromer 7 months ago
parent
commit
6b395a8b0a
Signed by: Chris Cromer <chris@cromer.cl> GPG Key ID: 39CC813FF3C8708A
2 changed files with 8 additions and 0 deletions
  1. 5
    0
      src/bubble_sort.c
  2. 3
    0
      src/sort.c

+ 5
- 0
src/bubble_sort.c View File

@@ -13,6 +13,11 @@
13 13
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14 14
  */
15 15
 
16
+/**
17
+ * Usar el algoritmo de bubble sort
18
+ * @param array El array a ordenar
19
+ * @param n El tamaño del array
20
+ */
16 21
 void bubble_sort(int *array, int n) {
17 22
 	int i;
18 23
 	int j = n;

+ 3
- 0
src/sort.c View File

@@ -23,6 +23,9 @@
23 23
 
24 24
 #define SORT_VERSION "1.0.0"
25 25
 
26
+/**
27
+ * El array a ordenar
28
+ */
26 29
 static int *array;
27 30
 
28 31
 /**

Loading…
Cancel
Save