---
name: "ctif"
section: "1"
platform: "linux"
package: "xt-toolbus"
version: "0.25-2"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/ctif"
---

# ctif(1)

Automatic C generator for ToolBus interfaces

## NAME

ctif - Automatic C generator for ToolBus interfaces

## SYNOPSIS

**ctif** \[ **-help** \] \[ **-tool** *ToolName* \] \[ **-tifs** *ToolInterfaces* \] \[ **-multi** \] \[ **-newstyle** \] \[ **-backdoor** \] \[ **-split** \]

## DESCRIPTION

This manual page briefly describes the **ctif** commands.

**ctif** generates C interface  code for connecting tools with the ToolBus.

The generated tool interface is always written to a file named  ToolName.tif.c.

For example \`\`calc.tif.c'' when the tool name is \`\`calc''. When the -split command line option is specified function  declarations and functions definitions are separated in  ToolName.tif.h and ToolName.tif.c

## OPTIONS

- **-help**

  print a description of all arguments of the toolbus or tool

- **-tool** *ToolName*

  name of the tool as used in the ToolBus scrip

- **-tifs** *ToolInterfaces*

  interfaces files as generated by the ToolBus, e.g. toolbus -gentifs my\_script.tb

- **-multi**

  generate multi-tool ready C code including cid refs.

- **-newstyle**

  generate new style handlers, i.e. aterm \* and Tmatch

- **-backdoor**

  generate a backdoor in situations where not all functions are known.

- **-split**

  write function declarations to .h and function  definitions to .c file

## SEE ALSO

[gen-adapter(1)](/gen-adapter/1.md), [perl-adapter(1)](/perl-adapter/1.md), [tifstoc(1)](/tifstoc/1.md)

## AUTHOR

This manual page was written by Julien LEMOINE \<speedblue@debian.org\>. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts.
