Skip to Main Content Skip to Search
Product Documentation

xPCFSDirStructSize - Get number of items in folder

Prototype

int xPCFSDirStructSize(int port, const char *path);

Arguments

port

Enter the value returned by either the function xPCOpenSerialPort or the function xPCOpenTcpIpPort.

path

Enter the folder path on the target computer.

Return

The xPCFSDirStructSize function returns the number of items in the folder on the target computer. If this function detects an error, it returns -1.

Description

The xPCFSDirStructSize function returns the number of items in the folder on the target computer. Use this size as the numDirItems parameter in the xPCFSDirItems function.

See Also

API function xPCFSDir

File object method xpctarget.fsbase.dir

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS