# TCL_CreateTable

## Definition

  `#include <twl/tcl.h>`

      TCLResult TCL_CreateTable( TCLAccessor* pAccessor ,
                                 void* tableBuffer ,
                                 u32 tableBufferSize ,
                                 void* workBuffer ,
                                 u32 workBufferSize ,
                                 FSResult* pFSResult );

## Arguments

`pAccessor` | Accessor
`tableBuffer` | Buffer for loading the management file
`tableBufferSize` | Size of the buffer for loading the management file
`workBuffer` | Working buffer
`workBufferSize` | Size of the working buffer
`pFSResult` | Processing result when an error has been generated by an FS function inside this function

## Return Values

Processing result

## Description

Generates a management file if the value returned by the `TCL_LoadTable` function is neither `TCL_RESULT_ERROR_EXIST_OTHER_FILE` nor `TCL_RESULT_ERROR_ALREADY_MANAGED`. If a management file already exists, `TCL_CreateTable` deletes it and then generates a new management file.

For `tableBuffer` and `tableBufferSize`, specify a buffer and a buffer size. The buffer size is determined by the `TCL_GetTableBufferSize` function.

For `workBuffer` and `workBufferSize`, specify a buffer and a buffer size. The buffer size is determined by the `TCL_GetWorkBufferSize` function.

This function regenerates the management file, so all previous favorite information is deleted. Call this function with care.

## See Also

`TCL_LoadTable`

## Revision History

2008/10/07 Initial version.

CONFIDENTIAL