| 1 |
/* |
| 2 |
* @progname divorce.li |
| 3 |
* @version 1.0 of 2004-07-03 |
| 4 |
* @author Vincent Broman ([email protected]) |
| 5 |
* @category |
| 6 |
* @output gedcom event function values |
| 7 |
* @description |
| 8 |
* |
| 9 |
* Utility function supporting divorce/DIVO events in GeDCom data |
| 10 |
* divorce( fam) -> event, |
| 11 |
* |
| 12 |
* I put an equivalent function in my C source, but this can be used everywhere. |
| 13 |
*/ |
| 14 |
|
| 15 |
func divorce( fam) { |
| 16 |
fornodes( root( fam), childnode) { |
| 17 |
if( eqstr( tag( childnode), "DIVO")) { |
| 18 |
return( childnode) |
| 19 |
} |
| 20 |
} |
| 21 |
return( 0) |
| 22 |
} |
| 23 |
|