title: How to make a struct maker like CGRectMake (iphone)
body: <p>i have a struct HLRange with two CGFloat's</p>
  
  <pre><code>struct HOLRange
  {
  CGFloat min;
  CGFloat max;
  };
  typedef struct HOLRange HOLRange;
  </code></pre>
  
  <p>but how do i make a function like HLRangeMake(1,2); .. like CGRectMake?</p>
  
  <p>--EDIT--</p>
  
  <p>my header file</p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  
  struct HOLRange
  {
      CGFloat min;
      CGFloat max;
  };
  typedef struct HOLRange HOLRange;
  
  HOLRange HOLRangeMake(CGFloat min, CGFloat max) {
      HOLRange range;
      range.min = min;
      range.max = max;
      return range;
   }
  
  @interface Structs : NSObject {
  
  }
  
  @end
  
  
  error message: ld: duplicate symbol _HOLRangeMake in             /Users/Documents/projects/iphone/test/catalog/base1/build/base1.build/Debug-iphoneos/base1.build/Objects-normal/armv6/base1AppDelegate.o and /Users/Documents/projects/iphone/test/catalog/base1/build/base1.build/Debug-iphoneos/base1.build/Objects-normal/armv6/main.o
  </code></pre>