The British novelist whose swagger and love of literary pyrotechnics produced dazzling, sardonic prose