int beginning_of_line();
Returns the position of the beginning of the current line, therefore the current position at the beginning of the buffer or when the previous character is a newline.