buf_size: given and array and an offset then return the remaining size
commit7899824419a666025378ebdd48b81c4cc71d9fe9
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 24 Nov 2014 12:00:13 +0000 (24 15:00 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 24 Nov 2014 12:00:13 +0000 (24 15:00 +0300)
tree4d1e36d83d1993f0c6c89443a3d302a168745c68
parent7c930d14660de8be29fff1a59e7a32f1774f3092
buf_size: given and array and an offset then return the remaining size

Say you have an array:

char buf[10];

Then the size of "buf + 2" is 8.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_buf_size.c