Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

number followed by capital L

Tags:

c

xv6

What does 512L mean? (or probably any number followed by capital L)

example:

uint sec and then some code with the expression: sec * 512L

(taken out of the XV6 code - mkfs.c)

like image 549
Reut Sharabani Avatar asked Mar 23 '23 09:03

Reut Sharabani


1 Answers

L stands for long.

This creates a literal of type long.

l would also work, but it looks like 1, so it should be avoided.

like image 87
SLaks Avatar answered Apr 02 '23 14:04

SLaks