File: get_refs.c

package info (click to toggle)
libxc 5.2.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 196,988 kB
  • sloc: ansic: 31,506; f90: 3,369; perl: 1,392; python: 966; makefile: 425; sh: 318
file content (17 lines) | stat: -rw-r--r-- 353 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>

#include <xc.h>

int main()
{
  xc_func_type func;

  xc_func_init(&func, XC_GGA_X_B88, XC_UNPOLARIZED);

  printf("'%s', defined in the reference(s):\n", func.info->name);
  for(int i=0;i<5;i++)
    if(func.info->refs[i]!=NULL)
      printf("%s (DOI %s)\n",func.info->refs[i]->ref,func.info->refs[i]->doi);

  xc_func_end(&func);
}