add missing doc

This commit is contained in:
Chris Cromer 2018-11-13 09:18:03 -03:00
parent 051d2b22cd
commit 6b395a8b0a
Signed by: cromer
GPG Key ID: 39CC813FF3C8708A
2 changed files with 8 additions and 0 deletions

View File

@ -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;

View File

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