# PetscFListAddDynamic

Given a routine and a string id, saves that routine in the specified registry.

### Synopsis

    #include "petsc.h"
    int PetscFListAdd(PetscFList *fl,const char name[],const char rname[],void (*fnc)(void))

### Synopsis

    int PetscFListAddDynamic(PetscFList *fl,char *name,char *rname,int (*fnc)(void *))

### Input Parameters

| fl | - pointer registry
| name | - string to identify routine
| rname | - routine name in dynamic library
| fnc | - function pointer (optional if using dynamic libraries)

### Notes

Users who wish to register new methods for use by a particular PETSc component (e.g., SNES) should generally call the registration routine for that particular component (e.g., SNESRegisterDynamic()) instead of calling PetscFListAddDynamic() directly.

${PETSC_ARCH}, ${PETSC_DIR}, ${PETSC_LIB_DIR}, ${BOPT}, or ${any environmental variable} occuring in pathname will be replaced with appropriate values.

### See Also

PetscFListDestroy(), SNESRegisterDynamic(), KSPRegisterDynamic(),
PCRegisterDynamic(), TSRegisterDynamic(), PetscFList

Level:developer
Location: src/sys/src/dll/reg.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages