---
name: "DlpReadStorageInfo"
section: "3"
platform: "linux"
package: "coldsync"
version: "3.0+pre3-3"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/DlpReadStorageInfo"
---

# DlpReadStorageInfo(3)

short description

## NAME

**DlpReadStorageInfo** – short description

## LIBRARY

*libpconn*

## SYNOPSIS

**#include \<palm.h\>**

**#include \<pconn/pconn.h\>**

*int*\

**DlpReadStorageInfo**(*PConnection \*pconn*, *const ubyte card*, *ubyte \*last\_card*, *ubyte \*more*, *struct dlp\_cardinfo \*cinfo*);

## DESCRIPTION

**DlpReadStorageInfo** reads information about a given memory card on the Palm. *card* is the number of the memory card. Card numbers start at 0.

*last\_card* is filled in with the number of the last card retrieved.

*more* is filled in with a value. This ought to be non-zero if there are more memory cards; however, this doesn't appear to be the case. This field is currently useless.

*cinfo* is filled in with memory card information. The *dlp\_cardinfo* structure is defined as

```
struct dlp_cardinfo
{
	ubyte totalsize;
	ubyte cardno;
	uword cardversion;
	struct dlp_time ctime;
	udword rom_size;
	udword ram_size;
	udword free_ram;
	ubyte cardname_size;
	ubyte manufname_size;
	char cardname[DLPCMD_MEMCARD_LEN];
	char manufname[DLPCMD_MEMCARD_LEN];
	uword rom_dbs;
	uword ram_dbs;
};
```

## RETURN VALUE

**DlpReadStorageInfo** returns 0 if successful, or a negative value in case of error.

## SEE ALSO

[libpconn(3)](/libpconn/3.md), [new\_PConnection(3)](/new_PConnection/3.md). May not work if the Palm has more than one memory card.
