1mysql_fetch_lengths(3) MariaDB Connector/C mysql_fetch_lengths(3)
2
3
4
5 Name
6 mysql_fetch_lengths - returns an array of length values for the current
7 row
8
9 Synopsis
10 #include <mysql.h>
11
12 unsigned long * mysql_fetch_lengths(MYSQL_RES * result);
13
14 Description
15 The mysql_fetch_lengths() function returns an array containing the
16 lengths of every column of the current row within the result set (not
17 including terminating zero character) or NULL if an error occurred.
18
19 Parameter
20 • result - a result set identifier returned by mysql_store_result(3) or
21 mysql_use_result(3). ### Notes mysql_fetch_lengths() is valid only
22 for the current row of the result set. It returns NULL if you call
23 it before calling mysql_fetch_row(3) or after retrieving all rows in
24 the result.
25
26 Return value
27 An array of unsigned long values . The size of the array can be deter‐
28 mined by the number of fields in current result set.
29
30 See also
31 • mysql_field_count(3)
32
33 • mysql_fetch_row(3)
34
35
36
37Version 3.2.2 mysql_fetch_lengths(3)