File: divorce.li

package info (click to toggle)
lifelines 3.0.50-2
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 11,140 kB
  • ctags: 6,517
  • sloc: ansic: 57,468; xml: 8,014; sh: 4,255; makefile: 848; yacc: 601; perl: 170; sed: 16
file content (23 lines) | stat: -rw-r--r-- 529 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * @progname    divorce.li
 * @version     1.0 of 2004-07-03
 * @author      Vincent Broman (vpbroman@mstar2.net)
 * @category
 * @output      gedcom event function values
 * @description
 *
 *  Utility function supporting divorce/DIVO events in GeDCom data
 *  divorce( fam) -> event,
 *
 * I put an equivalent function in my C source, but this can be used everywhere.
 */

func divorce( fam) {
    fornodes( root( fam), childnode) {
	if( eqstr( tag( childnode), "DIVO")) {
	    return( childnode)
	}
    }
    return( 0)
}