1267679Sjonathan/*- 2267679Sjonathan * Copyright 2014 Jonathan Anderson. 3267679Sjonathan * All rights reserved. 4267679Sjonathan * 5267679Sjonathan * Redistribution and use in source and binary forms, with or without 6267679Sjonathan * modification, are permitted provided that the following conditions 7267679Sjonathan * are met: 8267679Sjonathan * 1. Redistributions of source code must retain the above copyright 9267679Sjonathan * notice, this list of conditions and the following disclaimer. 10267679Sjonathan * 2. Redistributions in binary form must reproduce the above copyright 11267679Sjonathan * notice, this list of conditions and the following disclaimer in the 12267679Sjonathan * documentation and/or other materials provided with the distribution. 13267679Sjonathan * 14267679Sjonathan * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 15267679Sjonathan * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 16267679Sjonathan * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17267679Sjonathan * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 18267679Sjonathan * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19267679Sjonathan * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20267679Sjonathan * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21267679Sjonathan * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22267679Sjonathan * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23267679Sjonathan * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24267679Sjonathan * 25267679Sjonathan * $FreeBSD: releng/11.0/libexec/rtld-elf/tests/target/target.c 267679 2014-06-20 17:14:59Z jonathan $ 26267679Sjonathan */ 27267679Sjonathan 28267679Sjonathan#include "pythagoras.h" 29267679Sjonathan 30267679Sjonathan#include <stdio.h> 31267679Sjonathan 32267679Sjonathanint 33267679Sjonathanmain(int argc, char *argv[]) 34267679Sjonathan{ 35267679Sjonathan float hypotenuse = pythagorean_theorem(3, 4); 36267679Sjonathan printf("the hypotenuse of 3 and 4 is %d\n", (int) hypotenuse); 37267679Sjonathan 38267679Sjonathan return 0; 39267679Sjonathan} 40