add missing doc

pull/13/head
Chris Cromer 4 years ago
parent 051d2b22cd
commit 6b395a8b0a
Signed by: cromer
GPG Key ID: 39CC813FF3C8708A
  1. 5
      src/bubble_sort.c
  2. 3
      src/sort.c

@ -13,6 +13,11 @@
* 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.
*/
/**
* Usar el algoritmo de bubble sort
* @param array El array a ordenar
* @param n El tamaño del array
*/
void bubble_sort(int *array, int n) {
int i;
int j = n;

@ -23,6 +23,9 @@
#define SORT_VERSION "1.0.0"
/**
* El array a ordenar
*/
static int *array;
/**

Loading…
Cancel
Save